pixie v0.3.9 Pixie.LocalSubscription
Represents an in-VM subscription to a Bayeux channel.
Summary
Functions
Subscribe to a channel and call the provided function with messages
Cancel a local subscription
Functions
Subscribe to a channel and call the provided function with messages.
{:ok, sub} = Pixie.subscribe "/my_awesome_channel", fn(message,_)->
IO.inspect message
end
The function must take two arguments:
- A message struct.
- The subscription pid.