Class EventEndpoint

  • All Implemented Interfaces:
    EventListener

    public class EventEndpoint
    extends Object
    implements EventListener
    Websockets end-point to distribute events.
    Since:
    8.1.1
    Author:
    Marco Meschieri - LogicalDOC
    • Constructor Detail

      • EventEndpoint

        public EventEndpoint()
    • Method Detail

      • onOpen

        public void onOpen​(javax.websocket.Session session)
      • onClose

        public void onClose​(javax.websocket.Session session)
      • onMessage

        public void onMessage​(String message,
                              javax.websocket.Session session)
      • onBinaryMessage

        public void onBinaryMessage​(byte[] data,
                                    javax.websocket.Session session)
      • error

        public void error​(javax.websocket.Session session,
                          Throwable t)
      • distributeMessage

        public static void distributeMessage​(WebsocketMessage message)
        Distributes a message to all the connected clients
        Parameters:
        message - The message to be sent