gossip v1.4.0 Gossip.Client.Core behaviour View Source

Callbacks for the "channels" flag

This is the only required module.

Link to this section Summary

Callbacks

A callback to know when the socket is authenticated

Get the channels you want to subscribe to on start

A new message was received from Gossip on a channel

Get the current names of connected players

Get the game's User Agent.

Link to this section Callbacks

Link to this callback

authenticated()

View Source
authenticated() :: :ok

A callback to know when the socket is authenticated

Get the channels you want to subscribe to on start

Link to this callback

message_broadcast(arg1)

View Source
message_broadcast(Gossip.message()) :: :ok

A new message was received from Gossip on a channel

Get the current names of connected players

Used in the heartbeat

Get the game's User Agent.

This should return the game name with a version number.