Package org.photonvision.server
Class DataSocketHandler
java.lang.Object
org.photonvision.server.DataSocketHandler
-
Method Summary
Modifier and TypeMethodDescriptionvoid
broadcastMessage
(Object message, io.javalin.websocket.WsContext userToSkip) static DataSocketHandler
void
onBinaryMessage
(io.javalin.websocket.WsBinaryMessageContext context) protected void
onClose
(io.javalin.websocket.WsCloseContext context) void
onConnect
(io.javalin.websocket.WsConnectContext context)
-
Method Details
-
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
-