Tag: websocket

57 votes
11 answers
3K views
webSocketServer node.js how to differentiate clients

I am trying to use sockets with node.js, I succeded but I don't know how to differentiate clients in my c

avatar
Louetta
0 1 0 9
asked 07 September, 2021
65 votes
8 answers
501 views
Websocket transport reliability (Socket.io data loss during reconnection)

Used NodeJS, Socket.io Problem Imagine there are 2 users U1 & U2, connected to an app via Socket.io. Th

avatar
Winford
0 1 0 9
asked 07 September, 2021
64 votes
3 answers
1.5K views
Why is there no same-origin policy for WebSockets? Why can I connect to ws://localhost?

I'd like to use WebSockets for inter-process communication for my application (Daemon<->WebGUI and

avatar
Shantay
0 1 0 9
asked 07 September, 2021
49 votes
5 answers
1.5K views
Sending message to a specific connected users using webSocket?

I wrote a code for broadcasting a message to all users: // websocket and http servers var webSocketServer = re

avatar
Xavier
0 1 0 9
asked 07 September, 2021
63 votes
4 answers
2.8K views
WebSockets ping/pong, why not TCP keepalive?

WebSockets have the option of sending pings to the other end, where the other end is supposed to respond with

avatar
Sena
0 1 0 9
asked 07 September, 2021
61 votes
5 answers
2.3K views
Creating a "Hello World" WebSocket example

I don't understand why I cannot make the following code work. I want to connect with JavaScript to my ser

avatar
Solomon
0 1 0 9
asked 07 September, 2021
50 votes
2 answers
1.2K views
What is difference between grpc and websocket? Which one is more suitable for bidirectional streaming connection?

I want to develop a client-server application in a bi-directional streaming manner. what is more suitable tec

avatar
Stacia
0 1 0 9
asked 07 September, 2021
53 votes
2 answers
382 views
differences between webhook and websocket

I've always wanted to do a real-time chat. I've done that years ago in PHP+Ajax+Mysql and broke my

avatar
Yolando
0 1 0 9
asked 07 September, 2021
56 votes
3 answers
1.5K views
Faye vs. Socket.IO (and Juggernaut)

Socket.IO seems to be the most popular and active WebSocket emulation library. Juggernaut uses it to create a

avatar
Lorenzo
0 1 0 9
asked 07 September, 2021
61 votes
9 answers
1.4K views
Reconnection of Client when server reboots in WebSocket

I am using web socket using PHP5 and the Chrome browser as client. I have taken the code from the site http://

avatar
Keith
0 1 0 9
asked 07 September, 2021
59 votes
6 answers
2.3K views
How to create websockets server in PHP

I am looking for a simple code to create a WebSocket server. I found phpwebsockets but it is outdated now and

avatar
Gigi
0 1 0 9
asked 07 September, 2021
65 votes
8 answers
2.8K views
How to construct a WebSocket URI relative to the page URI?

I want to construct a WebSocket URI relative to the page URI at the browser side. Say, in my case convert HTTP

avatar
Thurman
0 1 0 9
asked 07 September, 2021
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
766 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
311 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