What is WebSocket? #3635
-
|
What is WebSocket? |
Beta Was this translation helpful? Give feedback.
Answered by
NadeeshaMedagama
Jun 28, 2026
Replies: 1 comment
-
|
A WebSocket provides a persistent, two-way communication channel between a client and a server. Unlike HTTP, where the client must initiate each request, WebSockets allow both the client and the server to send messages at any time after the connection is established. HTTP |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
malika1974
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A WebSocket provides a persistent, two-way communication channel between a client and a server.
Unlike HTTP, where the client must initiate each request, WebSockets allow both the client and the server to send messages at any time after the connection is established.
HTTP
Client
↓ Request
Server
↓ Response
WebSocket
Client ⇄ Server
Common Uses
Chat applications
Live sports scores
Online games
Stock market updates
Collaborative editing