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

Method add

basex-api/src/main/java/org/basex/http/ws/WsPool.java:47–51  ·  view source on GitHub ↗

Adds a WebSocket to the clients list. @param socket WebSocket @return client ID

(final WebSocket socket)

Source from the content-addressed store, hash-verified

45 * @return client ID
46 */
47 static String add(final WebSocket socket) {
48 final String id = createId();
49 CLIENTS.put(id, socket);
50 return id;
51 }
52
53 /**
54 * Removes a WebSocket from the clients list.

Callers 1

onWebSocketConnectMethod · 0.95

Calls 2

createIdMethod · 0.95
putMethod · 0.45

Tested by

no test coverage detected