Phoenix.Socket.Message
Defines a Phoenix.Socket
Message dispatched over channels.
The Message format requires the following keys:
- topic - The String topic or topic:subtopic pair namespace, ie “messages”, “messages:123”
- event - The String event name, ie “join”
- payload - The String JSON message payload
Summary↑
from_map!(map) | Converts a map with string keys into a |
Functions
Converts a map with string keys into a %Phoenix.Socket.Message{}
.
Raises Phoenix.Socket.Message.InvalidMessage
if not valid