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

Method emit

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

Sends a message to all connected clients. @param message message @throws QueryException query exception

(final Item message)

Source from the content-addressed store, hash-verified

64 * @throws QueryException query exception
65 */
66 public static void emit(final Item message) throws QueryException {
67 send(message, new ArrayList<>(CLIENTS.values()));
68 }
69
70 /**
71 * Sends a message to all connected clients except to the one with the given ID.

Callers 1

itemMethod · 0.95

Calls 2

sendMethod · 0.95
valuesMethod · 0.45

Tested by

no test coverage detected