WebSocketServer.prototype.clients()
APINetwork
获得过滤条件下所有的WebSocket链接
调用方法
- () -> Object<id, WebSocket>
- (filter) -> Object<id, WebSocket>
参数介绍
- filter: (id, WebSocket) -> passed可空过滤函数
关联API
- WebSocketServer()
- WebSocketServer.prototype.broadcast()
- WebSocketServer.prototype.close()