diff --git a/lib/parser.js b/lib/parser.js index 4d4e40bd..be39d9c4 100644 --- a/lib/parser.js +++ b/lib/parser.js @@ -9,8 +9,7 @@ var packets = exports.packets = { , ping: 2 , pong: 3 , message: 4 - , error: 5 - , upgrade: 6 + , upgrade: 5 }; var packetslist = Object.keys(packets); diff --git a/test/parser.js b/test/parser.js index af53b925..f98bc1bb 100644 --- a/test/parser.js +++ b/test/parser.js @@ -62,11 +62,6 @@ describe('parser', function () { .to.eql({ type: 'message', data: 'aaa' }); }); - it('should encode an error packet', function () { - expect(decode(encode({ type: 'error', data: 'aaa' }))) - .to.eql({ type: 'error', data: 'aaa' }); - }); - it('should encode an upgrade packet', function () { expect(decode(encode({ type: 'upgrade' }))) .to.eql({ type: 'upgrade' });