| 49 | } |
| 50 | |
| 51 | void wsConnected(WebsocketConnection& socket) |
| 52 | { |
| 53 | totalActiveSockets++; |
| 54 | |
| 55 | //Use a global instance and add this new connection. Normally |
| 56 | userGeorge.addSession(socket); |
| 57 | // Notify everybody about new connection |
| 58 | |
| 59 | String message = F("New friend arrived! Total: ") + String(totalActiveSockets); |
| 60 | socket.broadcast(message); |
| 61 | } |
| 62 | |
| 63 | void wsMessageReceived(WebsocketConnection& socket, const String& message) |
| 64 | { |
nothing calls this directly
no test coverage detected