View Source Communication messages
Messages related to communication between players including RoomMessages, DirectMessages and LobbyMessages.
Teiserver.Communication.Room:{room_id}
Pubsub messages related to the Room.
Message received
Sent whenever a new message is sent into a room
:message- ATeiserver.Communication.RoomMessagerepresenting the message received
%{
event: :message_received,
message: RoomMessage.t()
}
Teiserver.Communication.User:{user_id}
Messages related to the user and not a wider context.
Message received
Sent whenever a new DirectMessage is sent to this user.
:message- ATeiserver.Communication.DirectMessagerepresenting the message received
%{
event: :message_received,
message: DirectMessage.t()
}Message sent
Sent whenever a new DirectMessage is sent by this user.
:message- ATeiserver.Communication.DirectMessagerepresenting the message sent
%{
event: :message_sent,
message: DirectMessage.t()
}
Teiserver.Communication.Match:{match_id}
Pubsub messages related to the Match.
Message received
Sent whenever a new message is sent into a match
:message- ATeiserver.Communication.MatchMessagerepresenting the message received
%{
event: :message_received,
message: MatchMessage.t()
}