Tag: websocket

50 votes
4 answers
1.5K views
WebSocket with SSL

Is it possible to have WebSockets with HTTPS? When switching to HTTPS, my WebSocket returns a security error

avatar
Corrin
0 1 0 9
asked 07 September, 2021
61 votes
6 answers
2.3K views
Closing WebSocket correctly (HTML5, Javascript)

I am playing around with HTML5 WebSockets. I was wondering, how do I close the connection gracefully? Like, wh

avatar
Frederick
0 1 0 9
asked 07 September, 2021
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
718 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
754 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
379 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
61 votes
6 answers
1K views
WebSockets protocol vs HTTP

There are many blogs and discussions about WebSocket and HTTP, and many developers and sites strongly advocate

avatar
Nereida
0 1 0 9
asked 07 September, 2021
65 votes
4 answers
1.8K views
What are Long-Polling, Websockets, Server-Sent Events (SSE) and Comet?

I have tried reading some articles, but I am not very clear on the concepts yet. Would someone like to take a

avatar
Wei
0 1 0 9
asked 07 September, 2021