CyTube/tests/fastQuit.js

10 lines
268 B
JavaScript
Raw Normal View History

var io = require('socket.io-client');
var socket = io.connect('http://localhost:1337');
// connect, join a room, then disconnect as quickly as possible
socket.on('connect', function () {
socket.emit('joinChannel', { name: 'test' });
socket.disconnect();
});