Package nl.harm27.obswebsocket
Class OBSWebSocket
- java.lang.Object
-
- nl.harm27.obswebsocket.OBSWebSocket
-
public class OBSWebSocket extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static Pattern
NUMERIC_FORMAT_PATTERN
-
Constructor Summary
Constructors Constructor Description OBSWebSocket(String ip, int port)
OBSWebSocket(String ip, int port, String password)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
connected(WebSocket webSocket)
AuthenticationResult
getAuthenticationResult()
GeneralRequestSender
getGeneralRequestSender()
String
getMessageId()
ScenesRequestSender
getScenesRequestSender()
void
notifyShutdown()
void
receiveMessage(String message)
void
registerListener(EventListener eventListener)
void
sendMessage(BaseRequest request, Consumer<BaseResponse> responseConsumer)
-
-
-
Field Detail
-
NUMERIC_FORMAT_PATTERN
public static final Pattern NUMERIC_FORMAT_PATTERN
-
-
Method Detail
-
getMessageId
public String getMessageId()
-
sendMessage
public void sendMessage(BaseRequest request, Consumer<BaseResponse> responseConsumer)
-
registerListener
public void registerListener(EventListener eventListener)
-
notifyShutdown
public void notifyShutdown()
-
receiveMessage
public void receiveMessage(String message)
-
connected
public void connected(WebSocket webSocket)
-
getAuthenticationResult
public AuthenticationResult getAuthenticationResult()
-
getGeneralRequestSender
public GeneralRequestSender getGeneralRequestSender()
-
getScenesRequestSender
public ScenesRequestSender getScenesRequestSender()
-
-