- Sample
Procfile
s for Heroku: Click here
FYI: helloworld-socket.io
is deployed @ https://elegant-chat-app.herokuapp.com/.
src: https://www.youtube.com/watch?v=1BfCnjr_Vjg&t=3s
Merged repo:
sahilrajput03/web-rtc
into OLDER_STUFF directory.
Connection Initiation:
- When client sends a request to server for websocket connection, server responds with 101 HTTP response and the handshake is complete.
- At this point tcp/ip connection is left open allowing bi-directional messaging to be done with very low latency.
- The connection is left open until one of the parties is left off.
- Its also known as full-duplex connection in telecommunication terms that means both parties can talk at the same time.
Yet another page of mine on webrtc projects resources
Q. WebSockets is same as WebRTC?
-
Ans. NO! WebRTC is for browser-to-browser based communication instead of brower to server and backforth. ~ Fireship.io
-
Links:
Q. Amazing Question: Differences between io.to(), io.in(), and socket.to() for emitting to all clients in a room
-
Server Instance
Soure: Click here
-
Socket Instance
Source: Click here
-
Upgrade Mechanism
Source: Click here
-
Registering a Middleware
Source: Click Here
-
Sending Creentials
Source: Click here
-
Events
Source: Click here
-
Complete Api - Version 4.x
-
Acknowledgements:
Docs: Click here