File tree Expand file tree Collapse file tree 3 files changed +67
-67
lines changed
Expand file tree Collapse file tree 3 files changed +67
-67
lines changed Original file line number Diff line number Diff line change 1- var SCClient = require ( './lib/scclient ' ) ;
1+ var SCClientSocket = require ( './lib/scclientsocket ' ) ;
22var factory = require ( './lib/factory' ) ;
33
44module . exports . factory = factory ;
5- module . exports . SCClient = SCClient ;
5+ module . exports . SCClientSocket = SCClientSocket ;
66
77module . exports . Emitter = require ( 'component-emitter' ) ;
88
Original file line number Diff line number Diff line change 1- var SCClient = require ( './scclient ' ) ;
1+ var SCClientSocket = require ( './scclientsocket ' ) ;
22var scErrors = require ( 'sc-errors' ) ;
33var uuid = require ( 'uuid' ) ;
44var InvalidArgumentsError = scErrors . InvalidArgumentsError ;
@@ -94,7 +94,7 @@ function create(options) {
9494
9595 if ( opts . multiplex === false ) {
9696 opts . clientId = uuid . v4 ( ) ;
97- var socket = new SCClient ( opts ) ;
97+ var socket = new SCClientSocket ( opts ) ;
9898 _clients [ opts . clientId ] = socket ;
9999 return socket ;
100100 }
@@ -105,7 +105,7 @@ function create(options) {
105105 _clients [ opts . clientId ] . connect ( ) ;
106106 }
107107 } else {
108- _clients [ opts . clientId ] = new SCClient ( opts ) ;
108+ _clients [ opts . clientId ] = new SCClientSocket ( opts ) ;
109109 }
110110 return _clients [ opts . clientId ] ;
111111}
You can’t perform that action at this time.
0 commit comments