Class Jetty8WebSocket

    • Constructor Detail

      • Jetty8WebSocket

        public Jetty8WebSocket​(org.eclipse.jetty.websocket.WebSocket.Connection connection,
                               AtmosphereConfig config)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • isOpen

        public boolean isOpen()
        Description copied from class: WebSocket
        Is the underlying WebSocket open.
        Specified by:
        isOpen in class WebSocket
        Returns:
        true is opened
      • write

        public WebSocket write​(java.lang.String s)
                        throws java.io.IOException
        Description copied from class: WebSocket
        Use the underlying container's websocket to write the String.
        Specified by:
        write in class WebSocket
        Parameters:
        s - a websocket String message
        Returns:
        this
        Throws:
        java.io.IOException
      • write

        public WebSocket write​(byte[] b,
                               int offset,
                               int length)
                        throws java.io.IOException
        Description copied from class: WebSocket
        Use the underlying container's websocket to write the byte.
        Specified by:
        write in class WebSocket
        Parameters:
        b - a websocket byte message
        offset - start
        length - end
        Returns:
        this
        Throws:
        java.io.IOException
      • close

        public void close()
        Description copied from class: WebSocket
        Close the underlying WebSocket
        Specified by:
        close in class WebSocket