Package nl.harm27.obswebsocket.websocket
Class OBSWebSocketListener
- java.lang.Object
-
- nl.harm27.obswebsocket.websocket.OBSWebSocketListener
-
- All Implemented Interfaces:
WebSocket.Listener
public class OBSWebSocketListener extends Object implements WebSocket.Listener
-
-
Constructor Summary
Constructors Constructor Description OBSWebSocketListener(OBSWebSocket obsWebSocket)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletionStage<?>
onClose(WebSocket webSocket, int statusCode, String reason)
void
onError(WebSocket webSocket, Throwable error)
void
onOpen(WebSocket webSocket)
CompletionStage<?>
onText(WebSocket webSocket, CharSequence data, boolean last)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.net.http.WebSocket.Listener
onBinary, onPing, onPong
-
-
-
-
Constructor Detail
-
OBSWebSocketListener
public OBSWebSocketListener(OBSWebSocket obsWebSocket)
-
-
Method Detail
-
onOpen
public void onOpen(WebSocket webSocket)
- Specified by:
onOpen
in interfaceWebSocket.Listener
-
onText
public CompletionStage<?> onText(WebSocket webSocket, CharSequence data, boolean last)
- Specified by:
onText
in interfaceWebSocket.Listener
-
onClose
public CompletionStage<?> onClose(WebSocket webSocket, int statusCode, String reason)
- Specified by:
onClose
in interfaceWebSocket.Listener
-
onError
public void onError(WebSocket webSocket, Throwable error)
- Specified by:
onError
in interfaceWebSocket.Listener
-
-