1 | logger = require 'torch'
|
2 | postal = require('postal')()
|
3 |
|
4 | application = postal.channel 'application'
|
5 |
|
6 | application.subscribe "foo", (message, envelope) ->
|
7 | logger {message, envelope}
|
8 |
|
9 | application2 = postal.channel 'application'
|
10 | application2.publish "foo", 'hello'
|