Phoenix.Socket.Message

Defines a Phoenix.Socket Message dispatched over channels.

The Message format requires the following keys:

Source

Summary

from_map!(map)

Converts a map with string keys into a %Phoenix.Socket.Message{}. Raises Phoenix.Socket.Message.InvalidMessage if not valid

Functions

from_map!(map)

Converts a map with string keys into a %Phoenix.Socket.Message{}. Raises Phoenix.Socket.Message.InvalidMessage if not valid.

Source