NexsterOrg / nexster

Runtime of all micro services for the Nexster social network.
https://community.nexster.xyz
Other
0 stars 0 forks source link

Bidirectional communication with WebSocket protocol #2

Closed NamalSanjaya closed 1 year ago

NamalSanjaya commented 1 year ago

We find several places where server need to send data, without client initiate a request. eg : In a timeline, we need to continuously send data to front-end without front being asked for data every time. There fore, we use upgrade application layer protocol Http to Websocket when ever necessary.

So, that we need to understand How Websocket works in both client and server side. Please learn more about Websocket.

wg spec - https://websockets.spec.whatwg.org/

NamalSanjaya commented 1 year ago