Here's where I attach a connection to the clients array.

*// Open connection.*
*    var connection = request.accept('echo-protocol', request.origin);*
* connection.resource = request.resource;*
* // Client index to remove them on 'close' event.*
* var index = clients.push(connection) - 1;*

Now, in the game cycle, I always use *clients[i].sendUTF(...)* to send game 
data to the client. I've narrowed down my memory leak to this sendUTF.

What about *sendUTF* could be causing a memory leak in my game loop? Any 
help would be appreciated!

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to