mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
Expose listener class
Bumped node version Updated client Make sure constructors are called Added tests
This commit is contained in:
Submodule example/client updated: 09094a2114...c42d188872
@@ -29,7 +29,7 @@ server = http.createServer(function(req, res){
|
||||
res.end();
|
||||
} catch(e){
|
||||
send404(res);
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -47,6 +47,7 @@ var buffer = [],
|
||||
io = io.listen(server);
|
||||
|
||||
io.on('connection', function(client){
|
||||
console.log('test');
|
||||
client.send(json({ buffer: buffer }));
|
||||
client.broadcast(json({ announcement: client.sessionId + ' connected' }));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user