Code Fellows Reading Notes

412

Web Sockets

Once the WebSocket connection is established, both the client and the server can send messages to each other. The messages can be of any data type.

Socket.io Tutorial

Socket.io vs Web Sockets

OSI Model Explained

The OSI model is divided into seven layers, each of which represents a different aspect of data communication: Physical layer, data link layer, network layer, transport layer, session layer, presentation layer, and application layer.

TCP Handshakes Explained

The TCP handshake involves a three-way exchange of messages between the two devices. Here’s how it works:

The first device synchronize message to the second device.

The second device sends back a synchronize-acknowledge message.

Finally, the first device sends an acknowledge message back to the second device, confirming that the connection has been established.

Once the TCP handshake is complete, the devices can start exchanging data over the network. If there are any errors or problems during the communication, the devices will use the ground rules they established during the handshake to handle them and keep the communication going smoothly.