0
votes
0answers
20 views

Socket.io emits to non-existing room

I'm writing a game and using socket.io. Every map in the game is represented by a room in socket.io. It works like this. User runs a client and joins main room (lobby) which is an empty room "" in ...
0
votes
1answer
12 views

How do I set and read a cookie using socket.io?

I'm using socket.io in my node.js app and I'm trying to set a simple cookie and read back the value of the cookie later. How do I do that with socket.io? Does it support this natively or do I need to ...
0
votes
0answers
7 views

socket.io error with ws module

Iam running on osx and I try installing socket.io, but I do get an error [email protected] install /usr/local/lib/node_modules/tower/node_modules/tower-cli/node_modules/tower-> ...
0
votes
0answers
20 views

Node.js not connecting with mobile browsers

I've been working on a small radio player that uses node.js to create a websocket that pushes through updates to the song and artist when an xml file is updated and it work great on all desktop ...
1
vote
1answer
22 views

node.js - GET [[hostname]]/socket.io/1/ - 404 (Not Found)

Socket.io doesn't seem to be serving up its socket.io.js file with connect. here is my server.js code: var app = require('http').createServer(handler), io = require('socket.io').listen(app), ...
0
votes
1answer
13 views

How to store an array in the value for Key value pairs of redis server?

I am using redis server to store key-value(username-socketID) pairs for a chat app in socket.io. The problem i have faced is that the same username can login from different devices so will have ...
0
votes
0answers
22 views

Need a way to create a cookie so that node js server can access it (cross domain)

I have a Node.js server with socket.io. Many domains will communicate with this node server. I need a way to create a cookie with the domain as my node.js server so that, when a client my node.js ...
0
votes
1answer
17 views

Rounding Numbers before Socket.io emit?

I'm using Nodejs with Socket.io. I want to minimize the size of the data I'm sending. I want to send numbers to the client. My numbers have great precision but the client only need to know the first ...
0
votes
0answers
32 views

Make a game with node.js smoother?

I made a game with node.js and uploaded it.. it should be 30 frames per second.. The game is hosted in AppFog. Now I testing it and it runs slow.. I mean in local network it runs a lot smoother I do ...
0
votes
0answers
18 views

Node.js MySQL ETIMEDOUT error

After running node for a long time I get this error. My program itself works perfectly fine. What does it really mean? I can't find anything about it. And most importantly how to prevent it? Error: ...
0
votes
1answer
32 views

Hosting multiple instances of a node.js server

I'm new to node.js and I'm working on learning how to use Socket.io to create multiple chat servers on my domain. Here's the scenario: you log onto the site you pick a chat room or create a chat ...
1
vote
2answers
70 views

How do I get node.js working on my server?

I am new to node.js and have got it working fine on localhost. For localhost I am using xampp, then have a .bat file which runs node app.js (runs the server). It works perfectly and runs the game as ...
1
vote
1answer
31 views

upload a multi-player game with node.js

I made a game in node.js and uploaded it.. it should be 30 - 60 frames per second.. Now I testing it and it runs slow.. I mean in local network it runs a lot smoother The server isn't that far away.. ...
1
vote
1answer
19 views

Can I use Socket.io and Express withour routes for my templates?

I think this is a really noob question, but I'd like to know if I can run a Socket.io event server in a folder and run an HTML page using that server without being in the same folder. That is becaues ...
1
vote
0answers
24 views

How to find out the cause of EC2 EBS I/O requests?

I have a EC2 instant. The Account Activity is showed below. My EBS I/O requests is very large. I run socket.io with Node.js which has about 1,000 users connecting the socket. But the traffic of the ...
1
vote
1answer
33 views

What is the best way to test a video chat application locally?

If I am running a local server that is hosting a video chat application what is the best way to test the application with another user? Lets say I have two computers, is there a way I can allow ...
1
vote
0answers
49 views

unity3D: connect to node.js using socket.io

I am trying to use socket.io to connect my unity3d program with node.js server. Is it possible?if it possible, please share the documents or steps of this.... Most of the people used "unity ...
0
votes
0answers
27 views

socket.io.emit when database changes

this is my app configuration app.js //SERVER var server = app.listen(3000, function(){ console.log("Express server listening on port %d in %s mode", app.get('port'), app.settings.env); }); ...
1
vote
1answer
26 views

socket.io with express to update variables in the DOM

this is the test case... app.js var express = require('express'), http = require('http'), //other variables var app = express(); var server = http.createServer(app); var io = ...
-1
votes
0answers
31 views

Javascript won't work after socket connection? [on hold]

I need to connect to socket io on my server from HTML. The problem is, when I declare the variable for socket, everything after that does not work. When I move the socket code to after the alerts, ...
0
votes
0answers
33 views

Does not change the variable

Why does not change the variable? var dNode = require('./node_modules/dnode'); var IM = require('./im.js'); var dPort = 8082, ioPort = 8085; dNode({ connect: function(user_id, callback) { ...
0
votes
0answers
33 views

node.js - how to get disconnect event with socket.io?

Can someone tell me how to get disconnect event with socket.io with xhr-polling in node.js please? This example not working with xhr-polling but works with websockets.. /* Basics */ var express = ...
0
votes
0answers
11 views

Organizing dialogues. Reflections

Short description: I need to organize a system of dialogues on the site. On the server side using Node.js, transport is socket.io. Problem: Make sending a message to the user. Example: I'm sending a ...
0
votes
0answers
17 views

node.js - get disconnect event with socket.io with xhr-polling

Can someone tell me how to get disconnect event with socket.io with xhr-polling in node.js please? This example not working with xhr-polling but works with websockets.. /* Basics */ var express = ...
0
votes
1answer
33 views

getting started with socket.io without nodejs?

I have started working on socket.io. As i'm new to socket.io so i don't know much about it. can anyone tell me whether node is must for socket.io or not ? can we use socket.io as standalone without ...
3
votes
1answer
81 views

node.js + socket.io + redis architecture - horizontal serverscaling socket connections?

i'm using node.js for the first time and hoping for an advice: i installed the following programs on my server: node.js v0.11.3-pre express v3.3.4 socket.io v0.9.14 connect-redis v1.4.5 Redis ...
0
votes
1answer
27 views

Node.js, MYSQL - how to get ONLY the data without column name

I'm using a select statement to pull the data from a mysql server: client.query('SELECT attend FROM testnumbers WHERE Gym =2', function(err,result){ var jay = result; ...
3
votes
1answer
50 views

Node.js and socket.io for a notification bar : Am I going the right way?

I'm currently coding a quite standard Apache/PHP/mySQL website using Symfony2 and considering using Node and socket.io for a special need : a notification bar. Nothing too fancy, a notification is lit ...
0
votes
1answer
38 views

Socket.io firing callback function multiple times

I'm working on a multiplayer canvas game using node.js and socket.io and I'm having problems with my node server throwing a ton of the same error immediately after the client handshake is established. ...
0
votes
1answer
22 views

Broadcast message to all clients

I've tried broadcasting a message to all clients with no success. The marked line WORKS but only to one client. I've already tried these options: socket.emit socket.broadcast.emit Thanks

1 2 3 4 5 71
15 30 50 per page