kalevala v0.1.0 Kalevala.Character.Foreman.Callbacks behaviour View Source
Callbacks for a integrating with the character foreman process
Link to this section Summary
Callbacks
Fill in state with any passed in options
Send options to a connection process
Send text to a connection process
Called when the foreman process is halted through a conn
The process is terminating from a :terminate
message
The character updated and presence should be tracked
Link to this section Types
Options for starting the foreman process
Link to this section Callbacks
Fill in state with any passed in options
Send options to a connection process
Send text to a connection process
Called when the foreman process is halted through a conn
Perform whatever actions are required to start terminating.
The process is terminating from a :terminate
message
Perform whatever is required before terminating.
Link to this callback
track_presence(state, arg2)
View Sourcetrack_presence(state(), Kalevala.Character.Conn.t()) :: :ok
The character updated and presence should be tracked