Interface IWebSocketConnection

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void close()
      Closes the connection (ignored if already closed).
      void forceClose()
      Forcibly closes the connection (ignored if already closed).
      IFuture<java.lang.Integer> sendMessage​(byte[] header, byte[] body)
      Send bytes using the connection.
    • Method Detail

      • sendMessage

        IFuture<java.lang.Integer> sendMessage​(byte[] header,
                                               byte[] body)
        Send bytes using the connection.
        Parameters:
        header - The message header.
        body - The message body.
        Returns:
        A future indicating success.
      • close

        void close()
        Closes the connection (ignored if already closed).
      • forceClose

        void forceClose()
        Forcibly closes the connection (ignored if already closed).