Pluralize getConnectedSocket + alias previous name

This commit is contained in:
Jesse Cotton 2018-04-02 21:39:12 -07:00
parent 8abb861cab
commit 4d0c98c97a
Non sono state trovate chiavi note per questa firma nel database
ID Chiave GPG: 731B5A1B4C1DDCD3

Vedi 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;
};