Sends a message to a specific clients. @param message message @param ids client IDs @throws QueryException query exception
(final Value message, final String... ids)
| 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. |