mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
Removed error packet type.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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' });
|
||||
|
||||
Reference in New Issue
Block a user