Package org.rspeer.commons
Class Communication.WebSocketClient
- java.lang.Object
-
- org.rspeer.commons.Communication.WebSocketClient
-
- Enclosing class:
- Communication
public static class Communication.WebSocketClient extends Object
-
-
Constructor Summary
Constructors Constructor Description WebSocketClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
broadcast(com.fasterxml.jackson.databind.node.ObjectNode message)
void
broadcast(String message)
void
connect()
void
disconnect()
io.socket.client.Socket
getSocket()
boolean
isConnected()
-
-
-
Constructor Detail
-
WebSocketClient
@Inject public WebSocketClient() throws URISyntaxException
- Throws:
URISyntaxException
-
-
Method Detail
-
getSocket
public io.socket.client.Socket getSocket()
-
connect
public void connect()
-
disconnect
public void disconnect()
-
broadcast
public void broadcast(String message) throws com.fasterxml.jackson.core.JsonProcessingException
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
broadcast
public void broadcast(com.fasterxml.jackson.databind.node.ObjectNode message) throws com.fasterxml.jackson.core.JsonProcessingException
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
isConnected
public boolean isConnected()
-
-