Class Communication.WebSocketClient

java.lang.Object
org.rspeer.commons.Communication.WebSocketClient
Enclosing class:
Communication

public static class Communication.WebSocketClient extends Object
  • Constructor Details

  • Method Details

    • 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()