View Source Kalevala.Communication behaviour (kalevala v0.1.0)
Handle communication for the game
Register global channels, room channels, character channels, etc.
Link to this section Summary
Functions
Publish a message on a channel
Register a new channel with a callback
Subscribe the current PID to a channel
Unsubscribe the current PID to a channel
Link to this section Callbacks
@callback initial_channels() :: []
Link to this section Functions
Publish a message on a channel
Register a new channel with a callback
Subscribe the current PID to a channel
Link to this function
unsubscribe(channel_ets_key, channel_name, subscriber_pid, options)
View SourceUnsubscribe the current PID to a channel