Class ChatServer


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

      Fields 
      Modifier and Type Field Description
      private static java.util.List<javax.websocket.Session> clients  
    • Constructor Summary

      Constructors 
      Constructor Description
      ChatServer()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close​(javax.websocket.Session session)  
      void error​(javax.websocket.Session session, java.lang.Throwable ex)  
      void message​(javax.websocket.Session session, java.lang.String message)  
      void open​(javax.websocket.Session session)  
      • Methods inherited from class java.lang.Object

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

      • clients

        private static java.util.List<javax.websocket.Session> clients
    • Method Detail

      • open

        public void open​(javax.websocket.Session session)
      • close

        public void close​(javax.websocket.Session session)
      • message

        public void message​(javax.websocket.Session session,
                            java.lang.String message)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • error

        public void error​(javax.websocket.Session session,
                          java.lang.Throwable ex)
                   throws java.io.IOException
        Throws:
        java.io.IOException