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 “phx_join”payload- The string JSON message payloadref- The unique string ref
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.