WebSocket
WebSocket provides a persistent, two-way message connection between client and server, which is why it stands at the end of the series of communication methods. The chapter starts with how the protocol works, then shows what the application itself has to design: the meaning of messages, reconnection and the resynchronisation of state, scaling and the handling of slow clients, and finally security and troubleshooting. The last lesson compares the methods met so far in one table, and shows where Socket.IO fits among them.
WebSocket
WebSocket provides a persistent, two-way message connection between client and server, which is why it stands at the end of the series of communication methods. The chapter starts with how the protocol works, then shows what the application itself has to design: the meaning of messages, reconnection and the resynchronisation of state, scaling and the handling of slow clients, and finally security and troubleshooting. The last lesson compares the methods met so far in one table, and shows where Socket.IO fits among them.