Interface Connection


  • public interface Connection
    A logical websocket connection. Tyrus creates this connection after successful upgrade and gets data from ReadHandler and writes data to Writer.
    • Method Detail

      • getReadHandler

        ReadHandler getReadHandler()
        Returns a read handler. A transport can pass websocket data to tyrus using the handler.
        Returns:
        tryus read handler that handles websocket data.
      • close

        void close​(CloseReason reason)
        Notifies tyrus that underlying transport is closing the connection.
        Parameters:
        reason - for closing the actual connection.