package net.ihiroky.tyrus.sample;

import javax.websocket.CloseReason;
import javax.websocket.EndpointConfig;
import javax.websocket.OnClose;
import javax.websocket.OnError;
import javax.websocket.OnMessage;
import javax.websocket.OnOpen;
import javax.websocket.Session;
import javax.websocket.server.ServerEndpoint;
import java.io.IOException;

/**
 * Created on 13/06/24, 11:11.
 *
 * @author Hiroki Itoh
 */
@ServerEndpoint(value = "/echo")
public class EchoEndpoint {

    @OnOpen
    public void onOpen(Session session, EndpointConfig config) throws IOException {
        System.out.println("onOpen: " + session);
    }

    @OnClose
    public void onClose(Session session, CloseReason reason) throws IOException {
        System.out.println("onClose: " + session + ", " + reason);
    }

    @OnMessage
    public void onMessage(Session session, String message) {
        System.out.println("onMessage: " + session + ", " + message);
        for (Session s : session.getOpenSessions()) {
            s.getAsyncRemote().sendText(message);
        }
    }

    @OnError
    public void onError(Session session, Throwable t) {
        System.out.println("onError: " + session + ", " + t);
    }
}

@@ -609,19 +609,42 @@
  session
+ + %22, config:%22 + config
 );%0A
-
     %7D%0A%0A 
@@ -787,24 +787,31 @@
 ession + %22, 
+reason:
 %22 + reason);
@@ -945,24 +945,33 @@
 session + %22,
+ message:
  %22 + message
@@ -1159,24 +1159,24 @@
 owable t) %7B%0A
-
         Syst
@@ -1217,16 +1217,26 @@
 on + %22, 
+throwable:
 %22 + t);%0A

Fix log