Phoenix.Socket
Holds state for every channel, pointing to its transport, pubsub server and more.
Socket Fields
assigns
- The map of socket assigns, default:%{}
channel
- The channel module where this socket originatedchannel_pid
- The channel pidendpoint
- The endpoint module where this socket originatedjoined
- If the socket has effectively joined the channelpubsub_server
- The registered name of the socket’s PubSub serverref
- The latest ref sent by the clienttopic
- The string topic, ie"rooms:123"
transport
- The socket’s transport, ie:Phoenix.Transports.WebSocket
transport_pid
- The pid of the socket’s transport process