Adds a WebSocket to the clients list. @param socket WebSocket @return client ID
(final WebSocket socket)
| 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. |
no test coverage detected