TCP sequence number question

This is more of a theoretical question than an actual problem I have. If I understand correctly, the sequence number in the TCP header of a packet is the index of the first byte in the packet in the w…


javascript - Send message to specific client with socket.io and node.js

I'm working with socket.io and node.js and until now it seems pretty good, but I don't know how to send a message from the server to an specific client, something like this: client.send(message, recei…


windows - how to count bytes sent and received per TCP connection(system-wide)?

e.g. recent versions of TCPView has such functionality: showing bytes sent/received per TCP connection(counting starts when TCPView is launched). is it possible w/o packet sniffering? does windows pr…


Send additional data on socket connection

How to best send additional data upon socket connection? Client: socket.on('connect',function(){//I'd like set some values and pass them up to the node server.}); Node.js Server: io.on('connection…



How to bind the event handler of socket.io(in nodejs) to my own scope?

I'm using "socket.io" in my nodejs server. Is there a way to run the registered event functions in the scope of my class/module(in the browser)?... init: function(){this.socket=new io.Socket(…


php - Authenticate user for socket.io/nodejs

I have a php login, the user puts in a username/password, it checks the mysql db against the login information. If authenticated a session is created via php and the user can now access the system wit…


node.js - Socket.IO-how do I get a list of connected sockets/clients?

I'm trying to get a list of all the sockets/clients that are currently connected. io.sockets does not return an array, unfortunately. I know I could keep my own list using an array, but don't think…


node.js - Advantage/disadvantage of using socketio heartbeats

Socket.io allows you to use heartbeats to "check the health of Socket.IO connections." What exactly are heartbeats and why should or shouldn't I use them?…


html5 - Socket.IO-require is not defined

I'm trying to get socket.io working but now in Chrome I get the error: Uncaught ReferenceError: require is not defined client.php:9Uncaught ReferenceError: io is not defined I changed the way to inclu…


How can I do congestion control for a UDP protocol?

I have a custom UDP protocol with multiple senders/receivers designed to send large files around as fast as possible. It is client/server based. How can I detect congestion on the LAN to slow the ra…




example socket client emit callback express disconnect with server https