mirror of
https://github.com/karl0ss/orvibo-b25-server-kex.git
synced 2025-04-29 12:53:40 +01:00
Pluralize getConnectedSocket + alias previous name
This commit is contained in:
parent
8abb861cab
commit
4d0c98c97a
@ -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;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user