class EchoHandler extends TextWebSocketHandler {

    @Override
    protected void handleTextMessage(WebSocketSession session, TextMessage message) throws Exception {
        var msg = message.getPayload();
        session.sendMessage(new TextMessage("RECEIVED: " + msg));
    }

}