Class NodeWs

All Implemented Interfaces:
SesNotifier

public class NodeWs extends WsNotifier
WebSocket communiction between server nodes.
  • Constructor Details

  • Method Details

    • getSubscribers

      public Set<String> getSubscribers()
      Get set of subcriber-ids
    • removeSubscriber

      public void removeSubscriber(String id)
      Remove a subscriber
    • setHandler

      public void setHandler(NodeWsApi.Handler<String> h)
    • putText

      public boolean putText(String nodeid, String msg)
      Post a message to node. Returns true if sending was successful.
    • put

      public boolean put(String nodeid, Object obj)
      Post a object to a node (JSON encoded)
    • newClient

      public WsNotifier.Client newClient(io.javalin.websocket.WsContext conn)
      Factory method.
      Specified by:
      newClient in class WsNotifier