Phoenix.Socket.Message

Defines a message dispatched over transport to channels and vice-versa.

The message format requires the following keys:

Source

Summary

from_map!(map)

Converts a map with string keys into a message struct

Functions

from_map!(map)

Converts a map with string keys into a message struct.

Raises Phoenix.Socket.InvalidMessageError if not valid.

Source