Skip to content
Discussion options

You must be logged in to vote

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

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by malika1974
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants