gossip v1.4.0 Gossip.Message View Source

Message on a channel struct

Link to this section Summary

Functions

The payload of a "messages/broadcast" event

Link to this section Types

Link to this type

send()

View Source
send() :: %{name: String.t(), message: String.t()}
Link to this type

t()

View Source
t() :: %Gossip.Message{
  channel: term(),
  game: term(),
  message: term(),
  name: term()
}

Link to this section Functions

Link to this function

%Gossip.Message{}

View Source (struct)

The payload of a "messages/broadcast" event

{ "channel": "gossip", "message": "Hello everyone!", "game": "ExVenture", "name": "Player" }