Returns the specified client from the WebSocket pool. @param qc query context @return client @throws QueryException query exception
(final QueryContext qc)
| 32 | * @throws QueryException query exception |
| 33 | */ |
| 34 | final WebSocket client(final QueryContext qc) throws QueryException { |
| 35 | final String id = toString(arg(0), qc); |
| 36 | final WebSocket ws = WsPool.get(id); |
| 37 | if(ws == null) throw WS_NOTFOUND_X.get(null, id); |
| 38 | return ws; |
| 39 | } |
| 40 | } |