@hoobs/express-ws
Advanced tools
Comparing version
{ | ||
"name": "@hoobs/express-ws", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"description": "WebSocket endpoints for Express applications (require version)", | ||
@@ -5,0 +5,0 @@ "main": "index", |
@@ -36,2 +36,9 @@ /* This module does a lot of monkeypatching, but unfortunately that appears to be the only way to | ||
return wsServer; | ||
}, | ||
getClients: function getClients(route) { | ||
if (route && route !== "") { | ||
return wsServer.clients.filter(client => url.parse(client.upgradeReq.url, true).pathname == route); | ||
} else { | ||
return wsServer.clients; | ||
} | ||
}, | ||
@@ -38,0 +45,0 @@ applyTo: function applyTo(router) { |
16969
1.6%236
3.06%