add tests
This commit is contained in:
@@ -34,6 +34,10 @@ io.of('/asd').on('connection', function() {
|
||||
// register namespace
|
||||
});
|
||||
|
||||
io.of('/abc').on('connection', function(socket) {
|
||||
socket.emit('handshake', socket.handshake);
|
||||
});
|
||||
|
||||
io.of(nsp).on('connection', function(socket) {
|
||||
socket.send('hello client');
|
||||
|
||||
@@ -96,6 +100,10 @@ io.of(nsp).on('connection', function(socket) {
|
||||
socket.on('error', function() {
|
||||
console.log('error: ', arguments);
|
||||
});
|
||||
|
||||
socket.on('getHandshake', function(cb) {
|
||||
cb(socket.handshake);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user