+
+ request.socket.client = client;
+});
+server.on('connection', function(socket) {
+ socket.on('close', function() {
+ var client = socket.client;
+ if (client) {
+ mark_recently_seen(client.unique);
+ delete sleeping_clients[client.request_id];
+ }
+ });
+});
+server.listen(5000);