zyket 1.0.9 → 1.0.10

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.9",
3
+ "version": "1.0.10",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -113,4 +113,10 @@ module.exports = class SocketIO extends Service {
113
113
  stop() {
114
114
  this.io.close();
115
115
  }
116
+
117
+ sockets() {
118
+ return Object.keys(this.io.sockets.sockets).map((socketId) => {
119
+ return this.io.sockets.sockets[socketId];
120
+ });
121
+ }
116
122
  }