Introduction to Socket.IO

Real-time | Bi-directional | Client-Server | HTML5

Image for post
Image for post
Short-polling vs Long-poling ( Image Source: https://hpbn.co/xmlhttprequest/ )

WebSocket

Image for post
Image for post
( Image Source: https://www.pubnub.com/blog/2015-01-05-websockets-vs-rest-api-understanding-the-difference/ )

Socket.IO

Image for post
Image for post

Initialize Connection

Image for post
Image for post

Bidirectional Communication

Image for post
Image for post

Real-time Chat Application

Advanced…

Namespaces & Rooms

Image for post
Image for post
Namespace: /chat

WebRTC

Image for post
Image for post
( Image Source: http://webrtc-security.github.io/ )

Full Stack Developer | BiBi

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store