Pluralize getConnectedSocket + alias previous name

This commit is contained in:
Jesse Cotton 2018-04-02 21:39:12 -07:00
parent 8abb861cab
commit 4d0c98c97a
No known key found for this signature in database
GPG Key ID: 731B5A1B4C1DDCD3

View File

@ -218,7 +218,7 @@ Orvibo.prototype.toggleSocket = function(uid) {
}
};
Orvibo.prototype.getConnectedSocket = function() {
Orvibo.prototype.getConnectedSockets = function() {
let sockets = [];
for (const key of Object.keys(packetData)) {
let socketData = getData(key);
@ -232,6 +232,8 @@ Orvibo.prototype.getConnectedSocket = function() {
return sockets;
};
Orvibo.prototype.getConnectedSocket = Orvibo.prototype.getConnectedSockets;
Orvibo.prototype.setLogger = function(newLogger) {
logger = newLogger;
};