Tag: c

60 votes
6 answers
2.3K views
getting the reason why websockets closed with close code 1006

I would like to get the reason websockets closed, so I can show the right message to the user. I have sok.on

avatar
Alba
0 1 0 9
asked 07 September, 2021
60 votes
1 answers
2K views
Differences between websockets and long polling for turn based game server

I am writing a server for an iOS game. The game is turn-based and the only time the server needs to push infor

avatar
Karolyn
0 1 0 9
asked 07 September, 2021
56 votes
12 answers
1.9K views
WebSockets and Apache proxy : how to configure mod_proxy_wstunnel?

I have : Apache (v2.4) on port 80 of my server for www.domain1.com, with mod_proxy and mod_proxy_wstunnel ena

avatar
Serina
0 1 0 9
asked 07 September, 2021
54 votes
6 answers
767 views
javax.websocket client simple example

Can someone please provide me very simple example of websocket client using javax.websocket? I want to connec

avatar
Boyd
0 1 0 9
asked 07 September, 2021
58 votes
7 answers
2.4K views
WebSocket: How to automatically reconnect after it dies

var ws = new WebSocket('ws://localhost:8080'); ws.onopen = function () { ws.send(JSON.stringify({

avatar
Sydney
0 1 0 9
asked 07 September, 2021
53 votes
3 answers
1.4K views
Loadbalancing web sockets

I have a question about how to load balance web sockets. I have a server which supports web sockets. Browsers

avatar
Ali
0 1 0 9
asked 07 September, 2021
61 votes
5 answers
1.9K views
How can I get the sha1 hash of a string in node.js?

I'm trying to create a websocket server written in node.js To get the server to work I need to get the S

avatar
Luis
0 1 0 9
asked 07 September, 2021
50 votes
4 answers
312 views
What is the difference between WebSocket and STOMP protocols?

What are the major differences between WebSocket and STOMP protocols?

avatar
Frederick
0 1 0 9
asked 07 September, 2021
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
719 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