@@ -253,7 +253,7 @@ class Chrome extends EventEmitter {
253253 _connect ( ) {
254254 return new Promise ( ( fulfill , reject ) => {
255255 try {
256- this . _wrapper = this . process
256+ this . _transport = this . process
257257 ? this . _createStdioWrapper ( )
258258 : this . _createWebSocketWrapper ( ) ;
259259 } catch ( err ) {
@@ -262,18 +262,18 @@ class Chrome extends EventEmitter {
262262 return ;
263263 }
264264 // set up event handlers
265- this . _wrapper . on ( 'open' , ( ) => {
265+ this . _transport . on ( 'open' , ( ) => {
266266 fulfill ( ) ;
267267 } ) ;
268- this . _wrapper . on ( 'message' , ( data ) => {
268+ this . _transport . on ( 'message' , ( data ) => {
269269 const message = JSON . parse ( data ) ;
270270 this . _handleMessage ( message ) ;
271271 } ) ;
272- this . _wrapper . on ( 'close' , ( code ) => {
272+ this . _transport . on ( 'close' , ( code ) => {
273273 this . _handleConnectionClose ( ) ;
274274 this . emit ( 'disconnect' ) ;
275275 } ) ;
276- this . _wrapper . on ( 'error' , ( err ) => {
276+ this . _transport . on ( 'error' , ( err ) => {
277277 reject ( err ) ;
278278 } ) ;
279279 } ) ;
@@ -345,7 +345,7 @@ class Chrome extends EventEmitter {
345345 }
346346 } ) ;
347347 }
348- get transport ( ) { return this . _wrapper ; }
348+ get transport ( ) { return this . _transport ; }
349349}
350350
351351module . exports = Chrome ;
0 commit comments