Package 

Class WsConfig

  • All Implemented Interfaces:

    
    public class WsConfig
    
                        

    Holds the different WebSocket handlers for a specific WsHandlerEntry or the WebSocket logger.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • onConnect

         void onConnect(@NotNull() WsConnectHandler wsConnectHandler)

        Add a WsConnectHandler to the WsHandler. The handler is called when a WebSocket client connects.

      • onMessage

         void onMessage(@NotNull() WsMessageHandler wsMessageHandler)

        Add a WsMessageHandler to the WsHandler. The handler is called when a WebSocket client sends a String message.

      • onClose

         void onClose(@NotNull() WsCloseHandler wsCloseHandler)

        Add a WsCloseHandler to the WsHandler. The handler is called when a WebSocket client closes the connection. The handler is not called in case of network issues, only when the client actively closes the connection (or times out).

      • onError

         void onError(@NotNull() WsErrorHandler wsErrorHandler)

        Add a wsErrorHandler to the WsHandler. The handler is called when an error is detected.