Class ExampleWebSockets


  • public class ExampleWebSockets
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String module  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Set<javax.websocket.Session> getClients()  
      void onClose​(javax.websocket.Session session)  
      void onMessage​(javax.websocket.Session session, java.lang.String msg, boolean last)  
      void onOpen​(javax.websocket.Session session)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • module

        public static final java.lang.String module
    • Constructor Detail

      • ExampleWebSockets

        public ExampleWebSockets()
    • Method Detail

      • onMessage

        public void onMessage​(javax.websocket.Session session,
                              java.lang.String msg,
                              boolean last)
      • onOpen

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

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

        public static java.util.Set<javax.websocket.Session> getClients()