mirror of
https://github.com/Spengreb/sync.git
synced 2026-05-13 19:22:05 +00:00
- Should prevent "write after end" errors caused by unloading a channel before it finishes loading - Might prevent strange cases of playlists gone wild
9 lines
268 B
JavaScript
9 lines
268 B
JavaScript
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();
|
|
});
|