Class DataSocketHandler

java.lang.Object
org.photonvision.server.DataSocketHandler

public class DataSocketHandler extends Object
  • Method Details

    • getInstance

      public static DataSocketHandler getInstance()
    • onConnect

      public void onConnect(io.javalin.websocket.WsConnectContext context)
    • onClose

      protected void onClose(io.javalin.websocket.WsCloseContext context)
    • onBinaryMessage

      public void onBinaryMessage(io.javalin.websocket.WsBinaryMessageContext context)
    • broadcastMessage

      public void broadcastMessage(Object message, io.javalin.websocket.WsContext userToSkip) throws com.fasterxml.jackson.core.JsonProcessingException
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException