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

Method send

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

Sends a message to a specific clients. @param message message @param ids client IDs @throws QueryException query exception

(final Value message, final String... ids)

Source from the content-addressed store, hash-verified

88 * @throws QueryException query exception
89 */
90 public static void send(final Value message, final String... ids) throws QueryException {
91 final List<WebSocket> list = new ArrayList<>(ids.length);
92 for(final String id : ids) {
93 final WebSocket ws = CLIENTS.get(id);
94 if(ws != null) list.add(ws);
95 }
96 send(message, list);
97 }
98
99 /**
100 * Returns the client with the specified ID.

Callers 4

emitMethod · 0.95
broadcastMethod · 0.95
itemMethod · 0.95
itemMethod · 0.95

Calls 5

serializeMethod · 0.95
getMethod · 0.65
addMethod · 0.65
iterMethod · 0.65
getCauseMethod · 0.45

Tested by

no test coverage detected