File tree 2 files changed +1
-3
lines changed
2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ var debug = require('debug')('engine.io-client:socket');
8
8
var index = require ( 'indexof' ) ;
9
9
var parser = require ( 'engine.io-parser' ) ;
10
10
var parseuri = require ( 'parseuri' ) ;
11
- var parsejson = require ( 'parsejson' ) ;
12
11
var parseqs = require ( 'parseqs' ) ;
13
12
14
13
/**
@@ -439,7 +438,7 @@ Socket.prototype.onPacket = function (packet) {
439
438
440
439
switch ( packet . type ) {
441
440
case 'open' :
442
- this . onHandshake ( parsejson ( packet . data ) ) ;
441
+ this . onHandshake ( JSON . parse ( packet . data ) ) ;
443
442
break ;
444
443
445
444
case 'pong' :
Original file line number Diff line number Diff line change 29
29
"engine.io-parser" : " ~2.1.1" ,
30
30
"has-cors" : " 1.1.0" ,
31
31
"indexof" : " 0.0.1" ,
32
- "parsejson" : " 0.0.3" ,
33
32
"parseqs" : " 0.0.5" ,
34
33
"parseuri" : " 0.0.5" ,
35
34
"ws" : " ~2.3.1" ,
You can’t perform that action at this time.
0 commit comments