zyket 1.0.11 → 1.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zyket",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -115,8 +115,6 @@ module.exports = class SocketIO extends Service {
115
115
  }
116
116
 
117
117
  get sockets() {
118
- return Object.keys(this.io.sockets.sockets).map((socketId) => {
119
- return this.io.sockets.sockets[socketId];
120
- });
118
+ return Array.from(this.io.sockets.sockets.values());
121
119
  }
122
120
  }