Class WebSocket

    • Constructor Detail

      • WebSocket

        public WebSocket()
    • Method Detail

      • send

        public static void send​(javax.websocket.Session session,
                                String message)
        Sends a message in the specified session.
        Parameters:
        session - the session in which the message will be sent
        message - the message to send
      • sendToAll

        public static void sendToAll​(Queue<javax.websocket.Session> sessions,
                                     String message)
        Sends a message in the specified sessions.
        Parameters:
        sessions - the sessions in which the message will be sent
        message - the message to send