Questions tagged [socket.io-1.0]

The latest version of Socket.IO library.

Socket.IO enables real-time bidirectional event-based communication. It works on every platform, browser or device, focusing equally on reliability and speed.

Migrating from 0.9.x

255 questions
0
votes
1 answer

Is socket.io connection only triggered on page load?

I have a node application and users need to login. We don't want to refresh the page after logging them in. The problem is we cannot add their sockets by their user id if not refreshed. I'm thinking if there are some alternatives for this, rather…
zivklen
  • 79
  • 2
  • 10
0
votes
1 answer

vuejs emit from soket.io trouble

I'm trying to get data from the server with the socket. But vue does not fill the table, because the client has an array, and the server returns objects. serverside ... const r = require('rethinkdb'); const io = socketIO(server); r.connect(db) …
EvgenJin
  • 206
  • 2
  • 7
0
votes
1 answer

Connecting socket.io over https server

I am using electron js as client and created a nodejs server on port 3000 with my own signed https certificate. But when i tried to connect to my socket server from client using io.connect("https://localhost:3000") I am getting error…
lal rishav
  • 549
  • 3
  • 5
  • 17
0
votes
1 answer

Android:Not receiving any response from Socket.IO

I am writing a simple code to connect to Socket.Io server. Simply I am connecting to Socket.io in onCreate and pushing some message after button click. But unfortuantely not receiving asingle response from there. My debug point in not comming inside…
Dimitri Payet
  • 187
  • 2
  • 12
0
votes
1 answer

how to show the socket id in 'connection' callback

I tried to use official demo in socket.io. In this demo, it gives two arguments for connection callback.first is id,second is msg.but actually in function(id, msg), i tried and find out that the id is still the message,not id actually.…
Sunny Sun
  • 65
  • 5
  • 13
0
votes
0 answers

In socket.io, socket.disconnect() to a single socket, disconnect all socket connection

I have a browser, which connects to server using socket.io with transport as websocket only. I validate all socket connecting to my server, using simple logic and is working fine. Update-1 Now the problem occur when Internet fluctuates, browser is…
0
votes
1 answer

Apache, SSL, NodeJS, Express, Socket.io, Digital Ocean set up?

I tried setting up some mod_proxy methods (link below) but when active, it gives me a Service Unavailable message, (sorry, not a server/sysadmin guy) We have a development server without any SSL and it works perfectly. Our code so far…
Diego Ponciano
  • 453
  • 5
  • 12
0
votes
1 answer

Socket.io adaptor for hubot

I have recently started writing hubot coffee script. I would like to know if there is any adaptor which can integrate hubot with socket.io chat framework.
Gyro
  • 733
  • 7
  • 11
0
votes
1 answer

nodeJS being bombarded with reconnections after restart

We have a node instance that has about 2500 client socket connections, everything runs fine except occasionally then something happens to the service (restart or failover event in azure), when the node instances comes back up and all socket…
Troy
  • 111
  • 1
  • 8
0
votes
0 answers

Socket.io how to connect to a different server

In Socket.io, I know how to connect to a specific URL with io.connect("http://example.com/"). However, it doesn't seem to work if I've already connected to a server. Basically, I would like to change the server that I'm connected to (say, if the…
Luke
  • 2,038
  • 3
  • 22
  • 46
0
votes
1 answer

React JS Uncaught ReferenceError: locationValue(variable) is not defined

I am trying to pass the value of the ImageTag entered by the user as well as the locationValue selected from the dropdown menu(selectField of material-ui) to the server via socket. Here is my code:- var BaseImageDetails =…
Paramveer Singh
  • 51
  • 1
  • 10
0
votes
1 answer

Connection limit in socket.io

Using a nodejs server and client with socket.io I can let 14k clients connect. Slightly less even when using clustering. Neither CPU or RAM are exhausted. Except for the automatic ping that socket.io does by itself no data is transmitted. The…
Riki
  • 1,776
  • 1
  • 16
  • 31
0
votes
1 answer

Socket.io not working without JQuery?

I've been trying out socket.io and have obviously started with their chat app. The client-side code on their side looks somthing like this: Socket.IO chat