Skip to content

Commit 2ea6498

Browse files
committed
Renamed SCClient to SCClientSocket
1 parent 43232f6 commit 2ea6498

File tree

3 files changed

+67
-67
lines changed

3 files changed

+67
-67
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
var SCClient = require('./lib/scclient');
1+
var SCClientSocket = require('./lib/scclientsocket');
22
var factory = require('./lib/factory');
33

44
module.exports.factory = factory;
5-
module.exports.SCClient = SCClient;
5+
module.exports.SCClientSocket = SCClientSocket;
66

77
module.exports.Emitter = require('component-emitter');
88

lib/factory.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var SCClient = require('./scclient');
1+
var SCClientSocket = require('./scclientsocket');
22
var scErrors = require('sc-errors');
33
var uuid = require('uuid');
44
var 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
}

0 commit comments

Comments
 (0)