Readings: Socket.io - jacobwendt-401-advanced-javascript/cr-js-401d3 GitHub Wiki
Readings: Socket.io
WebSocket
- WebSocket is a computer communications protocol, providing full-duplex communication channels over a single TCP connection.
- The WebSocket protocol was standardized by the IETF as RFC 6455 in 2011
- The WebSocket API in Web IDL is being standardized by the W3C.
- WebSocket is distinct from HTTP. Both protocols are located at layer 7 in the OSI model
- Unlike HTTP, WebSocket provides full-duplex communication.
Difference Between WebSocket vs Socket.io
- It is the communication Protocol which provides bidirectional communication between the Client and the Server over a TCP connection
- WebSocket remains open all the time so they allow the real-time data transfer.