Reading notes about code for my future reference.
It is a computer communications protocol, utilizing full duplex communication channels over a TCP connection.
Starts with an HTTP reques, and once the connection is established, the communication switches to a bidirectional binary protocol.
handshake!
This sets up callback functions for various events on the Websocket connection.
You can make the socket connect to a local host server, and configure it to write on HTML and once that goes through correctly it you can write console logs that will say the appropriate line.
It sends a message to all connected clients. Can be used when wanting to notify a userbase that someone has connected to a server.
Websocket is the technology that enables two way communication. Socket.IO just allows the dev to bring that tech through a package, and simplifying the process to use it.
You would use it when making a comms circuit or or a chat room.
When making data charts to visualize traffic values.
OSI models simplifies the communication between different system architecture.
It shows the process of how data goes from a signal to binary all the way up to the user, using various techniques of compression and decompression.
So you are talking to someone about a thing they have no experience in. You then share the knowledge and ensure that you are both on the same page then you shake on it and confirm. But before you do all that you ask again how it works.