Tag: web

67 votes
4 answers
1.3K views
My Understanding of HTTP Polling, Long Polling, HTTP Streaming and WebSockets

I have read many posts on SO and the web regarding the keywords in my question title and learned a lot from th

avatar
Stacia
0 1 0 9
asked 07 September, 2021
67 votes
3 answers
1K views
Sending websocket ping/pong frame from browser

I keep reading about ping/pong messages in websockets to keep the connection alive, but I'm not sure what

avatar
Stacia
0 1 0 9
asked 07 September, 2021
66 votes
5 answers
2K views
Maximum concurrent Socket.IO connections

This question has been asked previously but not recently and not with a clear answer. Using Socket.io, is the

avatar
Lynette
0 1 0 9
asked 07 September, 2021
59 votes
5 answers
2.4K views
Do HTML WebSockets maintain an open connection for each client? Does this scale?

I am curious if anyone has any information about the scalability of HTML WebSockets. For everything I've

avatar
Frederick
0 1 0 9
asked 07 September, 2021
59 votes
11 answers
714 views
node.js, socket.io with SSL

I'm trying to get socket.io running with my SSL certificate however, it will not connect. I based my cod

avatar
Patsy
0 1 0 9
asked 07 September, 2021
58 votes
4 answers
1.5K views
What is the fundamental difference between WebSockets and pure TCP?

I've read about WebSockets and I wonder why browser couldn't simply open trivial TCP connection and

avatar
Tuan
0 1 0 9
asked 07 September, 2021
63 votes
12 answers
1.4K views
Send message to specific client with socket.io and node.js

I'm working with socket.io and node.js and until now it seems pretty good, but I don't know how to s

avatar
Frederick
0 1 0 9
asked 07 September, 2021
53 votes
7 answers
751 views
Why use AJAX when WebSockets is available?

I've been using WebSockets for a while now, I have chosen to create an Agile project management tool for

avatar
Tuan
0 1 0 9
asked 07 September, 2021
60 votes
12 answers
1.9K views
Debugging WebSocket in Google Chrome

Is there a way, or an extension, that lets me watch the "traffic" going through a WebSocket? For debugging pur

avatar
Vi
0 1 0 9
asked 07 September, 2021
55 votes
6 answers
376 views
Difference between socket and websocket?

I'm building web app that needs to communicate with another application using socket connections. This is

avatar
Chelsea
0 1 0 9
asked 07 September, 2021
56 votes
12 answers
1.7K views
HTTP headers in Websockets client API

Looks like it's easy to add custom HTTP headers to your websocket client with any HTTP header client whic

avatar
Daniel
0 1 0 9
asked 07 September, 2021
62 votes
4 answers
2.4K views
In what situations would AJAX long/short polling be preferred over HTML5 WebSockets?

I am building a small chat application for friends, but unsure about how to get information in a timely manner

avatar
Georgie
0 1 0 9
asked 07 September, 2021
66 votes
9 answers
1.9K views
Does HTTP/2 make websockets obsolete?

I'm learning about HTTP/2 protocol. It's a binary protocol with small message frames. It allows stre

avatar
Sena
0 1 0 9
asked 07 September, 2021
60 votes
8 answers
1.9K views
Differences between socket.io and websockets

What are the differences between socket.io and websockets in node.js? Are they both server push technologi

avatar
Daniel
0 1 0 9
asked 07 September, 2021
51 votes
6 answers
1.7K views
WebSockets vs. Server-Sent events/EventSource

Both WebSockets and Server-Sent Events are capable of pushing data to browsers. To me they seem to be competin

avatar
Nereida
0 1 0 9
asked 07 September, 2021
69 votes
18 answers
547 views
How can I update the parent's state in React?

My structure looks as follows: Component 1 - |- Component 2 - - |- Component 4 - - - |- Component 5

avatar
Stacia
0 1 0 9
asked 07 September, 2021
62 votes
16 answers
2.5K views
Error: 'node-sass' version 5.0.0 is incompatible with ^4.0.0

I've created a blank React project, using the command: npx create-react-app on npm v7.0.7 and Node.js v15

avatar
Chelsea
0 1 0 9
asked 07 September, 2021
54 votes
15 answers
376 views
Best way in asp.net to force https for an entire site?

About 6 months ago I rolled out a site where every request needed to be over https. The only way at the time

avatar
Forrest
0 1 0 9
asked 07 September, 2021
60 votes
30 answers
1.2K views
Using Node.js as a simple web server

I want to run a very simple HTTP server. Every GET request to example.com should get index.html served to it b

avatar
Elicia
0 1 0 9
asked 07 September, 2021