March 2020
Intermediate to advanced
328 pages
7h 58m
English
A real-time system that can’t send and receive messages is probably not going to be very useful. We utilize Channel request handlers in order to process messages from a client or to send data to the client. This allows us to write handlers which are very similar to an action in a traditional MVC controller.
Before jumping right into sending messages, let’s look at the message protocol used to represent every client and server message, to get an idea of what is actually being sent to a client.
Phoenix Channels use a simple message protocol to represent all messages to and from a client. The contents of the Message allow clients to keep track of the request and reply flow, which is important ...
Read now
Unlock full access