From cc14deb5ab0524c48a511ac30dd435cf56e93856 Mon Sep 17 00:00:00 2001 From: Guillermo Rauch Date: Mon, 16 Jan 2012 09:41:51 -0800 Subject: [PATCH] Removed error packet type. --- lib/parser.js | 3 +-- test/parser.js | 5 ----- 2 files changed, 1 insertion(+), 7 deletions(-) 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' });