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
1answer
24 views

Connecting Unity3d with Node.js

I am trying to use socket.io to connect my unity3d program with node.js server. Using the UnitySocketIO, I succeeded the connection between the client and server. However, On or Emit method does not ...
0
votes
1answer
45 views

nodejs mysql amazing row duplicates

I have problem for node.js. I read data for socket, using dgram.createSocket('udp4'). I parse data and write to mysql db (use https://npmjs.org/package/mysql) with code: var result = { ...
-4
votes
0answers
27 views

how to implement Real Time Video Chat with Peer-Peer connection? [closed]

I have developed a portal for my college application based on PHP. I have been using Node to implement websockets retrieve notifications and set up private chat system and public chat rooms. I want ...
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
1answer
104 views

How to calculate node.js socket buffer to avoid allocating memory and never using it?

I'm using node.js as a server between pairs of clients, to handle my online game. Clients send short messages between hem [one message should not exceed 200bytes]. Currently I expect single client to ...
0
votes
1answer
14 views

Referencing NodeJS Net Sockets outside of the connection context

I need to be able to have clients connect using NodeJS Sockets but then be able to send data to specific clients at a later time. Here is an example about what I am doing now: var net = ...
0
votes
0answers
19 views

Why nodejs sockets fire multiple times when emit an action?

I have the following nodejs server.js: var DEFAULT_PORT = 9000, express = require('express'), http = require('http'), socketio = require('socket.io'), app = express(), server ...
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 ...
1
vote
1answer
47 views

HTTP POST in Node.js not working

From nodejs i am trying to post data to another URL 127.0.0.1:3002 (in file poster.js), but when i try to access it on server at 127.0.0.1:3002 then posted data is not coming: My poster.js looks ...
0
votes
2answers
17 views

Cross-browser BSD-style sockets or Node.js streams

I'm in the process of implementing a streaming protocol in JavaScript. The protocol is defined in terms of byte streams, not messages. I'd like to be able to talk to browsers using this protocol. ...
1
vote
1answer
29 views

What can I do to ensure delivery of messages over TCP using 'net' in nodejs?

I've got a very simple server created using nodejs with 'net' module. I also have a client which connects to it using luasockets. I was testing the connection for like 2 months now, using different ...
-1
votes
1answer
83 views

Bower error tunneling socket could not be established, cause=Parse Error

I'm behind a corporate proxy, I've set my HTTP_PROXY and HTTPS_PROXY env var to http://username:password@proxyname:port/ doing console.log(process.env) output these var correctly. npm is working, ...
0
votes
1answer
56 views

How to register events with socket.io namespaces using socketio4Net?

I am using SocketIO4Net to create a .NET socket.io client in my worker role with which i can connect to my socket.io server. I have been able to connect to the namespace after shifting around a lot of ...
7
votes
1answer
374 views

Node js ECONNRESET

I m running an Express js application with socket.io for a chat webapp and I get the following error randomly around 5 times during 24h. The node process is wrapped in forever and it restarts ...

1 2 3 4 5 20
15 30 50 per page