Class WebSocketServer


  • public class WebSocketServer
    extends java.lang.Object
    Example of setting up a Jetty WebSocket server

    Note: this uses the Jetty WebSocket API, not the javax.websocket API.

    • Constructor Summary

      Constructors 
      Constructor Description
      WebSocketServer()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Server createServer​(int port)  
      static void main​(java.lang.String[] args)  
      • Methods inherited from class java.lang.Object

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

      • WebSocketServer

        public WebSocketServer()
    • Method Detail

      • createServer

        public static Server createServer​(int port)
      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception