Schoening
That is somewhat correct, but use this anyway.
socket.on('disconnect', function (data) {
socket.broadcast.emit("message",'D,' + mySelf[0] + ',' + mySelf[1] + ',' + mySelf[2]);
entities[myNumber] = null;
});
—
or anyone that can help.
I've created a server and made it all work. I uploaded it to various different hosts. But they all seem the have the worst connections, with an average ping time of 300 ms.
What would be the best host to host such a server.