MCPcopy Create free account
hub / github.com/BaseXdb/basex / client

Method client

basex-api/src/main/java/org/basex/query/func/ws/WsFn.java:34–39  ·  view source on GitHub ↗

Returns the specified client from the WebSocket pool. @param qc query context @return client @throws QueryException query exception

(final QueryContext qc)

Source from the content-addressed store, hash-verified

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}

Callers 5

itemMethod · 0.45
itemMethod · 0.45
valueMethod · 0.45
itemMethod · 0.45
itemMethod · 0.45

Calls 4

getMethod · 0.95
toStringMethod · 0.65
getMethod · 0.65
argMethod · 0.45

Tested by

no test coverage detected