0
votes
1answer
23 views

How to emit to room in socket.io?

How can I emit a request from a server to the client, to only one client... I know that io.sockets.to(room).emit('event' data) exists, but I don't hear about socket.to(room).emit
0
votes
0answers
5 views

error MSB007 node.js mongoose

i'ms trying to install mongoose on mys nodeJS project and i have this error C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.Cpp.InvalidPlatform C:\Program Files ...
1
vote
0answers
17 views

RemoveAllListeners() does not delete $events attribute?

I built a simple clientside logger which prints all current active socket.io listeners on my page. I'm getting this information directly from the socket object and the inner $events object. The ...
0
votes
0answers
20 views

node.js app running using forever inaccessible after a while

I have a node.js server and a java client communicating using socket.io. I use this api https://github.com/Gottox/socket.io-java-client for the java client. I am using forever module to run my server. ...
0
votes
4answers
42 views

Browser-based app needing IO control

This is a question about the best way to structure an app that has both server-side and client-side needs. Forgive the length -- I am trying to be as clear as possible with my vague question. For a ...
1
vote
1answer
11 views

Node: Distinguish between a reload event and a browser exit with socket event

I want to run some code when a a socket is closed but only if the user didn't reload the page... I have something like socket.on("close", function() { //do something here }); The problem is that ...
0
votes
0answers
14 views

Socket.io, Security and Multiplayer

I'm currently making a online game and I'm wondering about the security of Node.js and socket.io. Current State of the Game All my io.sockets.on('connection', function (socket) { ...
0
votes
0answers
30 views

When namespacing I receive a “cannot GET error” displayed in browser

I'm using namespaces to differentiate between version of my socket.io chat app, and I'm having trouble with a "cannot GET error displayed in browser." I plan on continually updating a chat app I made ...
0
votes
1answer
24 views

How to access mysql database with socket.io

I'm just getting into coding server side javascript and have been reading tutorials on socket.io and node.js, but I haven't come across anything demonstrating how to use node.js to access a mysql ...
1
vote
0answers
14 views

Socket.io limit packets numbers

I'm working actually on a file transfer system using socket.io and HTML5 file API. https://github.com/xblaster/Nodjawnloader (stable branch) The main problem I have is for huge file. Socket.io send ...
0
votes
0answers
15 views

How to stop socket reconection when calling Ajax requests made from Jquery?

I am having a socket connection running on node.js using socket.io library. I have a connect to socket statement at top of my script I have to make to ajax requests through jquery load dynamic ...
0
votes
1answer
27 views

socket.io - ReferenceError: socket is not defined

I'm trying to write a simple app that mirrors each character I type in a text area onto a div using socket.io, but I keep getting the following client error: "ReferenceError: socket is not defined" ...
0
votes
0answers
29 views

Node.js + Socket.io random stranger chat … performance? Strange things :-)

I wrote node.js + socket.io random stranger chat and everything is fine if there is no more than 200 people online ... right after this number strange things are happening. For example i have simple ...
-1
votes
1answer
17 views

Socket.io links dont work

I have problem with links, they didin't work on client side (socket.io) How can i get access to src img and page like this? /file/src.jpg? Only work when i give hyperlink something like this ...
0
votes
1answer
28 views

Socket.io connection via IP address not working

I got a game working with socket.io. It's working fine when playing locally and via my IP address (not LAN but real IP) when connecting via my own computer. However, when I give my IP and port to ...
0
votes
2answers
21 views

Resizing canvas to full browser window width and height

I'm playing around with a node/socket.io Pictionary game. I apologize in advance, I am a designer and not too keen with js. I'm just trying to re-size the canvas so it will be the entire width and ...
0
votes
1answer
15 views

NodeJS: Use environment variables in front end scripts

I'm writing a socket.io app, and I'm getting annoyed at having to chance a line in my frontend script.js file every time I push to heroku, from var socket = io.connect('http://localhost'); to var ...
1
vote
2answers
26 views

Why can’t I access data sent via socket.io by key in node.js?

I'm sending some data from my web page using socket.io and then handling it in the node.js back end. The code I use to send my data is: var joystick1 = new VirtualJoystick({ container : ...
0
votes
2answers
15 views

Socket event for specified Android client

I'm writing a an Android app that connect to a socket implement by Node.JS + socket.io. I'm using AndroidAsync (https://github.com/koush/AndroidAsync) for Android Client. I want to emit some events ...
0
votes
0answers
16 views

Error managing STOMP connections Node.js

I have this node.js for websocket pushing application, where I have in one hand the web front end cilents connected to the websockets server, using Socket.io; these clients send a JSON to apply ...
0
votes
0answers
21 views

How to send images, audio, video stream using socket.io?

I have implemented a private chat system and public chat room for my website. I would like to send send images, audio and video as well to get real time communication between users WebRTC just ...
0
votes
1answer
54 views

document.ready called in infinite loop with angular.js

I am building an app using Angular.js, Node.js, and Socket.io (among other things). My issue is that when I try to follow a link routing me to a login page, I end up in an infinite loop. The jquery ...
0
votes
1answer
28 views

Node.js terminates execution before script is finished, connecting via socket.io-client

I am trying to connect to a third party socket.io site with Node.js. I have installed socket.io-client. However, when I type "node script.js", it terminates after a split second. This is my pretty ...
0
votes
0answers
25 views

have one worker emit a message

I'm trying to create a cluster application with node.js. So far I'm pretty fine with my setup, and I can answer requests and emit messages to clients on different worker threads. Now the tricky ...
1
vote
1answer
31 views

Socket.IO & Redis (Where does it all go?)

I have Socket.IO hooked up to a RedisStore such that using "socket.set()" will store its information in my redis database. It does this by creating some form of random key which I can only assume is ...
0
votes
1answer
22 views

how to change other users socket properties?

I am using nodejs + socket.io and have chat. Every user, when enters chat, get some data to his socket. For example: module.exports = function(io) { var chat = io.of('/chat').on('connection', ...
0
votes
0answers
25 views

what is Android WebKit and which to choose for socket.io

I wanted to test whether socket.io works from android phone. I tested with default browser that comes with android phone with 2.2 version. Well it didn't work. I looked at the socket.io documentation ...
2
votes
1answer
43 views

Data validation in server by socket.io and node.js then POST a from

I have a form like this: <form method='post' action='next' onsubmit="return validateMyForm();" > <input type="text" id="data" /> <input type="submit" /> <p ...
1
vote
2answers
34 views

running custom functions with node and socket.io

So I would like to be able to run custom function through socket.io using node My basic idea is fairly simple, I just can't get it to work. Generally speaking you would write something similar to this ...
0
votes
1answer
21 views

socket.io error when connecting from iframe

So I have a couple applications on different servers all from inside of our network and I am using node.js and socket.io js to handle real time communication between them which when each is run ...
0
votes
0answers
18 views

How can I create a session for Socket.IO without using http within IOS?

I'm using Socket.IO with compound(express), and have a functioning socket implementation that I'm now looking to use on IOS and Android. From what I've researched thus far, socket.io is dependent on ...
0
votes
0answers
85 views

How to structure Node/Angular/Socket.io project?

I am working on a project that uses AngularJS and Socket.io. I found this very nice example of integration. This is the project structure: app.js --> app config bower.json ...
0
votes
1answer
40 views

socket.io Access Denied in iE10 on SharePoint2013

Hya, I'm running a socket.io server in a NodeJS enviroment under HTTPS. The js Code which calls my app to start the communication with my socket.io server runs on a sharePoint 2013 instance (Office ...
0
votes
1answer
19 views

Strange socket.io.js error on client side

I'm getting these strange error during my attempts to get socket.io working. Also, my socket.io.js file appears like this in chrome: I know my socket.io.js file does not have this within it. My ...
1
vote
1answer
31 views

in need of a little starting guidance on first app…

being new to node.js I am developing my first node.js app. the app will not be sending html pages instead it will be sending json data streams to update various parts of the loaded page. I'm ...
0
votes
1answer
25 views

How to reconnect a returning client (web page) in socket.io to a previously started backend process

Here's the use case I am trying to solve for: A user submits a form to a long running server-process. That process uses socket.io to report back to the browser the current status of the long-running ...
0
votes
2answers
28 views

Socket.io on port 80

I've made a node application which listens on port 80, my application works fine on localhost, but when I run it on my VPS, I get a different log and a different result ( websockets just don't work ) ...
2
votes
5answers
95 views

How to send a message to a particular client with socket.io

I'm starting with socket.io + node.js, I know how to send a message locally and to broadcast thanks socket.broadcast.emit() function, it's mean that all the connected clients receive the same message. ...
0
votes
2answers
39 views

Not able emit message after adding ssl over socket.io

I had built an application using Node JS and socket.io. It was working fine. Since I had to move the application over a secure connection, I changed the code to support SSL. But, now I am unable to ...
0
votes
1answer
23 views

node.js socket.io apache server

I have some sort of noob question regarding to node.js and socket.io. These two guys are usually needed to use websockets for server to browser communication. Once that my project gets done, do I have ...
0
votes
0answers
33 views

As I make new versions of a web app, is it possible to specify which version to launch in browser by adding the version number to the URL? (Node.js)

I made a very simple Node.js chat application on a linux server using a tutorial I found. I have set it up so that when I run node app.js I can launch serverdomain:8888 and see my chat app. My goal ...
0
votes
1answer
25 views

Is Socket.io's handshake query safe/secure?

If I were to do something like: io.connect('localhost', {query:"user=test&pass=1234"}); Could somebody find the user and pass information easily (like a regular GET form)? Is there anyway to ...
1
vote
1answer
55 views

socket.io, operations that takes advantage of storage backends?

I "found" that socket.io can be configured to use different storages for client storage logic, for example the redis store , my question is, what operations affect the use of that storage? for ...
0
votes
2answers
42 views

how does socket.io send mess messages across multiple servers?

the socket.io api has the ability to send messages to all clients. with one server and all sockets in memory i understand how that server one can send a message to all its clients, that's pretty ...
1
vote
1answer
34 views

Nodejs socket.io is emitting message to client as number of clients connected

I made a nodejs server wich uses socket.io to establish communication with web client, the server is sending sockets to specific client, the issue is if I have 5 clients connected to the server, the ...
0
votes
1answer
42 views

How to create a logout button in Node.js/Socket.io app

I have been working on an online game in node and Socket.io (with basically all of the game's state being in Socket.io), but one thing has been bugging me. Right now, a user has to close the page to ...
0
votes
3answers
41 views

Alternative Socket IO Client

I am trying to implement a device pairing program with nodejs. The server is implemented by someone else and uses socket io: var http = require('http'), io = require('socket.io'); But one of the ...
0
votes
2answers
42 views

Why did my browser cant connect to nodejs socket.io server?

My server side code is as below: var app = require('http').createServer(handler) , io = require('socket.io').listen(app) app.listen(1000); function handler (req, res) { function (err, data) ...
1
vote
1answer
38 views

Socket.io Fails On Every Emit

So I'm trying to move my project from development to production, hosted with modulus.io. The problem is that every time I try to emit or receive data between the server <-> client connection, the ...
0
votes
0answers
38 views

Socket io connects to multiple sockets on reconnect

I have one application where I have implemented notification using using Node js , socket io and redis. There I have successfully configured publisher and subscriber in node js. Using socket io I can ...

1 2 3 4 5 42
15 30 50 per page