Web Sockets

Last updated on
1 min read

Table of Contents

  • Offers full-duplex communication
  • Works over a single TCP connection
  • They use ws(web sockets) and wss:(web sockets secure) protocols
  • Quick overview of socket.io - https://socket.io/get-started/chat/
  • Uses web-sockets(it’s a browser technology) internally
  • Easily scalable, since only one connection is maintained between the server and all the clients
  • Realtime event-based communication
  • Used in analytics and dashboards, trading sites, chat apps etc
  • It was built for node.js
  • Uses Pub/Sub pattern - event-driven, one way messaging