dwrtc / ch.hsr.dsl.dwrtc.websocket / WebSocketHandler / onReceiveMessageFromWebSocket

onReceiveMessageFromWebSocket

private fun onReceiveMessageFromWebSocket(session: WsSession, message: String): Unit

Handler for a new message from the WebSocket

Sends the message to the recipient via P2P

Parameters

session - the WebSocket session this message is from

message - the message content