A Twitch.tv viewer reward and games system.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
var common = require('../../common'); var connection = common.createConnection(); var assert = require('assert');
var didConnect = false; connection.connect(function(err) { if (err) throw err;
assert.equal(didConnect, false); didConnect = true; });
var err; connection.connect(function(_err) { err = _err; });
connection.end();
process.on('exit', function() { assert.equal(didConnect, true); assert.equal(err.fatal, false); assert.equal(err.code, 'PROTOCOL_ENQUEUE_HANDSHAKE_TWICE'); });
|