Long Polling — Comparative and Sample Coded Expression

Written by obnsk | Published 2020/06/22
Tech Story Tags: javascript | nodes | express | web-development | socket.io | javascript-development | nodejs-apps | nodejs-and-docker

TLDR 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.via the TL;DR App

no story

Published by HackerNoon on 2020/06/22