Long Polling — Comparative and Sample Coded Expressionby@obnsk

Long Polling — Comparative and Sample Coded Expression

tldt arrow
Read on Terminal Reader🖨️

Too Long; Didn't Read

Long Polling is the simplest way of having a persistent connection with the server. It is simply hanging out the connection but with no specific protocol like WebSocket. Long polling is the most common way to use NodeJS to send and receive messages in real-time. To reduce the complexity of the sample, let’s assume that we have only one functional requirement which is the client. For this, we have 2 simple endpoints: Send Message: GET /new-message-post; Receive Message: Re-messages.

Coin Mentioned

Mention Thumbnail
featured image - Long Polling — Comparative and Sample Coded Expression
Oben Isik HackerNoon profile picture

@obnsk

Oben Isik
react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa