I’m trying to wrap my head around the flow of messages from the client to a channel, standing in my way is the correlation between the socket, transport and channel pieces.
Please correct me on the below if I’m wrong.
Initial connection setup
- Request from client via communication library is handled by the
Transport processon server.
Transport processdelegates/forward socket and other data to the
idfunction to authenticate and do assignment where applicable
Socketmodule communicates back to the
Incoming message (phx_join or a diff msg)
- Can I assume this will be routed directly from the
Transport processto the
Channelmodule, will the
Transport processintrospect the
Socketmodule, use the
channel macroto forward the request to the appropriate
Channelor it’s has this information already via
socketstruct returned by
Socketmodule in the initial connection setup phase?
- If the above is wrong; will the
Transport processdelegate to the
Socketmodule which will then call then call the