c

vertices.core

VertxServerWebSocketOps

implicit final class VertxServerWebSocketOps extends AnyVal

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. VertxServerWebSocketOps
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new VertxServerWebSocketOps(target: ServerWebSocket)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def closeL(statusCode: Short, reason: String): Task[Unit]

    Same as String) but with an handler called when the operation completes

  6. def closeL(statusCode: Short): Task[Unit]

    Same as #close(short) but with an handler called when the operation completes

  7. def closeL(): Task[Unit]

    Same as #close() but with an handler called when the operation completes

  8. def endL(): Task[Unit]

    Calls #close(Handler)

  9. def endL(data: Buffer): Task[Unit]

    Same as #end(T) but with an handler called when the operation completes

  10. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. def pipeToL(dst: WriteStream[Buffer]): Task[Unit]

    Pipe this ReadStream to the WriteStream.

    Pipe this ReadStream to the WriteStream.

    Elements emitted by this stream will be written to the write stream until this stream ends or fails.

    Once this stream has ended or failed, the write stream will be ended and the handler will be called with the result.

    dst

    the destination write stream

  13. def setHandshakeL(future: Future[Integer]): Task[Int]

    Set an asynchronous result for the handshake, upon completion of the specified future, the WebSocket will either be

    Set an asynchronous result for the handshake, upon completion of the specified future, the WebSocket will either be

    • accepted when the future succeeds with the HTTP 101 status code
    • rejected when the future is succeeds with an HTTP status code different than 101
    • rejected when the future fails with the HTTP status code 500

    The provided future might be completed by the WebSocket itself, e.g calling the #close() method will try to accept the handshake and close the WebSocket afterward. Thus it is advised to try to complete the future with Promise#tryComplete or Promise#tryFail.

    This method should be called from the WebSocket handler to explicitly set an asynchronous handshake.

    Calling this method will override the future completion handler.

    future

    the future to complete with

    Exceptions thrown

    IllegalStateException when the WebSocket has already an asynchronous result

  14. val target: ServerWebSocket
  15. def toString(): String
    Definition Classes
    Any
  16. def writeBinaryMessageL(data: Buffer): Task[Unit]
  17. def writeFinalBinaryFrameL(data: Buffer): Task[Unit]
  18. def writeFinalTextFrameL(text: String): Task[Unit]
  19. def writeFrameL(frame: WebSocketFrame): Task[Unit]
  20. def writeL(data: Buffer): Task[Unit]
  21. def writeTextMessageL(text: String): Task[Unit]

Inherited from AnyVal

Inherited from Any

Ungrouped