class ServerWebSocket extends WebSocketBase

Represents a server side WebSocket.

Instances of this class are passed into a io.vertx.scala.core.http.HttpServer#websocketHandler or provided when a WebSocket handshake is manually io.vertx.scala.core.http.HttpServerRequest#upgradeed.

Linear Supertypes
WebSocketBase, WriteStream[Buffer], ReadStream[Buffer], StreamBase, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ServerWebSocket
  2. WebSocketBase
  3. WriteStream
  4. ReadStream
  5. StreamBase
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ServerWebSocket(_asJava: AnyRef)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def accept(): Unit

    Accept the WebSocket and terminate the WebSocket handshake.

    Accept the WebSocket and terminate the WebSocket handshake.

    This method should be called from the WebSocket handler to explicitly accept the WebSocket and terminate the WebSocket handshake.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def asJava: AnyRef
  7. def binaryHandlerID(): String

    When a WebSocket is created it automatically registers an event handler with the event bus - the ID of that handler is given by this method.

    When a WebSocket is created it automatically registers an event handler with the event bus - the ID of that handler is given by this method.

    Given this ID, a different event loop can send a binary frame to that event handler using the event bus and that buffer will be received by this instance in its own event loop and written to the underlying connection. This allows you to write data to other WebSockets which are owned by different event loops. * @return the binary handler id

    Definition Classes
    ServerWebSocketWebSocketBase
  8. def binaryMessageHandler(handler: Handler[Buffer]): WebSocketBase

    Set a binary message handler on the connection.

    Set a binary message handler on the connection. This handler serves a similar purpose to io.vertx.scala.core.http.ServerWebSocket#handler except that if a message comes into the socket in multiple frames, the data from the frames will be aggregated into a single buffer before calling the handler (using io.vertx.scala.core.http.WebSocketFrame#isFinal to find the boundaries). * @param handler the handler

    returns

    a reference to this, so the API can be used fluently

    Definition Classes
    ServerWebSocketWebSocketBase
  9. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  10. def close(): Unit

    The WebSocket handshake will be accepted when it hasn't yet been settled or when an asynchronous handshake is in progress.

    The WebSocket handshake will be accepted when it hasn't yet been settled or when an asynchronous handshake is in progress.

    Definition Classes
    ServerWebSocketWebSocketBase
  11. def close(statusCode: Short, reason: Option[String], handler: Handler[AsyncResult[Unit]]): Unit

    Same as but with an handler called when the operation completes

    Same as but with an handler called when the operation completes

    Definition Classes
    ServerWebSocketWebSocketBase
  12. def close(statusCode: Short, reason: Option[String]): Unit

    Close sending a close frame with specified status code and reason.

    Close sending a close frame with specified status code and reason. You can give a look at various close payloads here: RFC6455 section 7.4.1

    No more messages can be sent. * @param statusCode Status code

    reason

    reason of closure

    Definition Classes
    ServerWebSocketWebSocketBase
  13. def close(statusCode: Short, handler: Handler[AsyncResult[Unit]]): Unit

    Same as io.vertx.scala.core.http.WebSocketBase#close but with an handler called when the operation completes

    Same as io.vertx.scala.core.http.WebSocketBase#close but with an handler called when the operation completes

    Definition Classes
    ServerWebSocketWebSocketBase
  14. def close(statusCode: Short): Unit

    Close the WebSocket sending a close frame with specified status code.

    Close the WebSocket sending a close frame with specified status code. You can give a look at various close payloads here: RFC6455 section 7.4.1

    No more messages can be sent. * @param statusCode Status code

    Definition Classes
    ServerWebSocketWebSocketBase
  15. def close(handler: Handler[AsyncResult[Unit]]): Unit

    Same as io.vertx.scala.core.http.ServerWebSocket#close but with an handler called when the operation completes

    Same as io.vertx.scala.core.http.ServerWebSocket#close but with an handler called when the operation completes

    Definition Classes
    ServerWebSocketWebSocketBase
  16. def closeFuture(statusCode: Short, reason: Option[String]): scala.concurrent.Future[Unit]

    Like close but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like close but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
    ServerWebSocketWebSocketBase
  17. def closeFuture(statusCode: Short): scala.concurrent.Future[Unit]

    Like close but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like close but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
    ServerWebSocketWebSocketBase
  18. def closeFuture(): scala.concurrent.Future[Unit]

    Like close but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like close but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
    ServerWebSocketWebSocketBase
  19. def closeHandler(handler: Handler[Unit]): ServerWebSocket

    Set a close handler.

    Set a close handler. This will be called when the WebSocket is closed.

    After this callback, no more messages are expected. * @param handler the handler

    returns

    a reference to this, so the API can be used fluently

    Definition Classes
    ServerWebSocketWebSocketBase
  20. def drainHandler(handler: Handler[Unit]): ServerWebSocket

    Set a drain handler on the stream.

    Set a drain handler on the stream. If the write queue is full, then the handler will be called when the write queue is ready to accept buffers again. See io.vertx.scala.core.streams.Pump for an example of this being used.

    The stream implementation defines when the drain handler, for example it could be when the queue size has been reduced to maxSize / 2. * @param handler the handler

    returns

    a reference to this, so the API can be used fluently

    Definition Classes
    ServerWebSocketWebSocketBaseWriteStream
  21. def end(handler: Handler[AsyncResult[Unit]]): Unit

    Calls io.vertx.scala.core.http.WebSocketBase#close

  22. def end(): Unit

    Calls io.vertx.scala.core.http.ServerWebSocket#close

  23. def end(data: Buffer, handler: Handler[AsyncResult[Unit]]): Unit

    Same as but with an handler called when the operation completes

    Same as but with an handler called when the operation completes

    Definition Classes
    ServerWebSocketWebSocketBaseWriteStream
  24. def end(data: Buffer): Unit

    Same as io.vertx.scala.core.http.WebSocketBase#end but writes some data to the stream before ending.

    Same as io.vertx.scala.core.http.WebSocketBase#end but writes some data to the stream before ending. * @param data the data to write

    Definition Classes
    ServerWebSocketWebSocketBaseWriteStream
  25. def endFuture(): scala.concurrent.Future[Unit]

    Like end but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like end but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
    ServerWebSocketWebSocketBaseWriteStream
  26. def endFuture(data: Buffer): scala.concurrent.Future[Unit]

    Like end but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like end but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
    ServerWebSocketWebSocketBaseWriteStream
  27. def endHandler(endHandler: Handler[Unit]): ServerWebSocket

    Set an end handler.

    Set an end handler. Once the stream has ended, and there is no more data to be read, this handler will be called. * @return a reference to this, so the API can be used fluently

    Definition Classes
    ServerWebSocketWebSocketBaseReadStream
  28. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  30. def exceptionHandler(handler: Handler[Throwable]): ServerWebSocket

    Set an exception handler on the write stream.

    Set an exception handler on the write stream. * @param handler the exception handler

    returns

    a reference to this, so the API can be used fluently

    Definition Classes
    ServerWebSocketWebSocketBaseWriteStreamReadStreamStreamBase
  31. def fetch(amount: Long): ServerWebSocket

    Fetch the specified amount of elements.

    Fetch the specified amount of elements. If the ReadStream has been paused, reading will recommence with the specified amount of items, otherwise the specified amount will be added to the current stream demand. * @return a reference to this, so the API can be used fluently

    Definition Classes
    ServerWebSocketWebSocketBaseReadStream
  32. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  33. def frameHandler(handler: Handler[WebSocketFrame]): ServerWebSocket

    Set a frame handler on the connection.

    Set a frame handler on the connection. This handler will be called when frames are read on the connection. * @param handler the handler

    returns

    a reference to this, so the API can be used fluently

    Definition Classes
    ServerWebSocketWebSocketBase
  34. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  35. def handler(handler: Handler[Buffer]): ServerWebSocket

    Set a data handler.

    Set a data handler. As data is read, the handler will be called with the data. * @return a reference to this, so the API can be used fluently

    Definition Classes
    ServerWebSocketWebSocketBaseReadStream
  36. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  37. def headers(): MultiMap

    returns

    the headers in the WebSocket handshake

  38. def isClosed(): Boolean

    returns

    true if the WebSocket is closed

    Definition Classes
    ServerWebSocketWebSocketBase
  39. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  40. def isSsl(): Boolean

    returns

    true if this io.vertx.scala.core.http.HttpConnection is encrypted via SSL/TLS.

    Definition Classes
    ServerWebSocketWebSocketBase
  41. def localAddress(): SocketAddress

    returns

    the local address for this socket

    Definition Classes
    ServerWebSocketWebSocketBase
  42. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  43. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  44. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  45. def path(): String

    returns

    the WebSocket handshake path.

  46. def pause(): ServerWebSocket

    Pause the ReadStream, it sets the buffer in fetch mode and clears the actual demand.

    Pause the ReadStream, it sets the buffer in fetch mode and clears the actual demand.

    While it's paused, no data will be sent to the data handler. * @return a reference to this, so the API can be used fluently

    Definition Classes
    ServerWebSocketWebSocketBaseReadStream
  47. def pipe(): Pipe[Buffer]

    Pause this stream and return a to transfer the elements of this stream to a destination .

    Pause this stream and return a to transfer the elements of this stream to a destination .

    The stream will be resumed when the pipe will be wired to a WriteStream. * @return a pipe

    Definition Classes
    ServerWebSocketWebSocketBaseReadStream
  48. def pipeTo(dst: WriteStream[Buffer], handler: Handler[AsyncResult[Unit]]): 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. * @param dst the destination write stream

    Definition Classes
    ServerWebSocketWebSocketBaseReadStream
  49. def pipeTo(dst: WriteStream[Buffer]): Unit

    Like io.vertx.scala.core.streams.ReadStream#pipeTo but with no completion handler.

    Like io.vertx.scala.core.streams.ReadStream#pipeTo but with no completion handler.

    Definition Classes
    ServerWebSocketWebSocketBaseReadStream
  50. def pipeToFuture(dst: WriteStream[Buffer]): scala.concurrent.Future[Unit]

    Like pipeTo but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like pipeTo but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
    ServerWebSocketWebSocketBaseReadStream
  51. def pongHandler(handler: Handler[Buffer]): WebSocketBase

    Set a pong frame handler on the connection.

    Set a pong frame handler on the connection. This handler will be invoked every time a pong frame is received on the server, and can be used by both clients and servers since the RFC 6455 section 5.5.2 and section 5.5.3 do not specify whether the client or server sends a ping.

    Pong frames may be at most 125 bytes (octets).

    There is no ping handler since ping frames should immediately be responded to with a pong frame with identical content

    Pong frames may be received unsolicited. * @param handler the handler

    returns

    a reference to this, so the API can be used fluently

    Definition Classes
    ServerWebSocketWebSocketBase
  52. def query(): Option[String]

    returns

    the WebSocket handshake query string.

  53. def reject(status: Int): Unit

    Like io.vertx.scala.core.http.ServerWebSocket#reject but with a status.

  54. def reject(): Unit

    Reject the WebSocket.

    Reject the WebSocket.

    Calling this method from the WebSocket handler when it is first passed to you gives you the opportunity to reject the WebSocket, which will cause the WebSocket handshake to fail by returning a response code.

    You might use this method, if for example you only want to accept WebSockets with a particular path.

  55. def remoteAddress(): SocketAddress

    returns

    the remote address for this socket

    Definition Classes
    ServerWebSocketWebSocketBase
  56. def resume(): ServerWebSocket

    Resume reading, and sets the buffer in flowing mode.

    Resume reading, and sets the buffer in flowing mode.

    If the ReadStream has been paused, reading will recommence on it. * @return a reference to this, so the API can be used fluently

    Definition Classes
    ServerWebSocketWebSocketBaseReadStream
  57. def setHandshake(future: Promise[Int]): Unit

    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 status code
    • rejected when the future is succeeds with an HTTP status code different than
    • 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 io.vertx.scala.core.http.ServerWebSocket#close method will try to accept the handshake and close the WebSocket afterward. Thus it is advised to try to complete the future with or .

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

    Calling this method will override the future completion handler. * @param future the future to complete with

  58. def setWriteQueueMaxSize(maxSize: Int): ServerWebSocket

    Set the maximum size of the write queue to maxSize.

    Set the maximum size of the write queue to maxSize. You will still be able to write to the stream even if there is more than maxSize items in the write queue. This is used as an indicator by classes such as Pump to provide flow control.

    The value is defined by the implementation of the stream, e.g in bytes for a io.vertx.scala.core.net.NetSocket, the number of io.vertx.scala.core.eventbus.Message for a io.vertx.scala.core.eventbus.MessageProducer, etc... * @param maxSize the max size of the write stream

    returns

    a reference to this, so the API can be used fluently

    Definition Classes
    ServerWebSocketWebSocketBaseWriteStream
  59. def subProtocol(): String

    Returns the WebSocket sub protocol selected by the WebSocket handshake.

    Returns the WebSocket sub protocol selected by the WebSocket handshake.

    On the server, the value will be null when the handler receives the websocket callback as the handshake will not be completed yet.

    Definition Classes
    ServerWebSocketWebSocketBase
  60. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  61. def textHandlerID(): String

    When a WebSocket is created it automatically registers an event handler with the eventbus, the ID of that handler is given by textHandlerID.

    When a WebSocket is created it automatically registers an event handler with the eventbus, the ID of that handler is given by textHandlerID.

    Given this ID, a different event loop can send a text frame to that event handler using the event bus and that buffer will be received by this instance in its own event loop and written to the underlying connection. This allows you to write data to other WebSockets which are owned by different event loops.

    Definition Classes
    ServerWebSocketWebSocketBase
  62. def textMessageHandler(handler: Handler[String]): WebSocketBase

    Set a text message handler on the connection.

    Set a text message handler on the connection. This handler will be called similar to the , but the buffer will be converted to a String first * @param handler the handler

    returns

    a reference to this, so the API can be used fluently

    Definition Classes
    ServerWebSocketWebSocketBase
  63. def toString(): String
    Definition Classes
    AnyRef → Any
  64. def uri(): String
  65. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  66. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  67. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  68. def write(data: Buffer, handler: Handler[AsyncResult[Unit]]): ServerWebSocket

    Same as but with an handler called when the operation completes

    Same as but with an handler called when the operation completes

    Definition Classes
    ServerWebSocketWebSocketBaseWriteStream
  69. def write(data: Buffer): ServerWebSocket

    Write some data to the stream.

    Write some data to the stream. The data is put on an internal write queue, and the write actually happens asynchronously. To avoid running out of memory by putting too much on the write queue, check the io.vertx.scala.core.streams.WriteStream#writeQueueFull method before writing. This is done automatically if using a io.vertx.scala.core.streams.Pump. * @param data the data to write

    returns

    a reference to this, so the API can be used fluently

    Definition Classes
    ServerWebSocketWebSocketBaseWriteStream
  70. def writeBinaryMessage(data: Buffer, handler: Handler[AsyncResult[Unit]]): ServerWebSocket

    Same as io.vertx.scala.core.http.WebSocketBase#writeBinaryMessage but with an handler called when the operation completes

    Same as io.vertx.scala.core.http.WebSocketBase#writeBinaryMessage but with an handler called when the operation completes

    Definition Classes
    ServerWebSocketWebSocketBase
  71. def writeBinaryMessage(data: Buffer): ServerWebSocket

    Writes a (potentially large) piece of binary data to the connection.

    Writes a (potentially large) piece of binary data to the connection. This data might be written as multiple frames if it exceeds the maximum WebSocket frame size. * @param data the data to write

    returns

    a reference to this, so the API can be used fluently

    Definition Classes
    ServerWebSocketWebSocketBase
  72. def writeBinaryMessageFuture(data: Buffer): scala.concurrent.Future[Unit]

    Like writeBinaryMessage but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like writeBinaryMessage but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
    ServerWebSocketWebSocketBase
  73. def writeFinalBinaryFrame(data: Buffer, handler: Handler[AsyncResult[Unit]]): ServerWebSocket

    Same as io.vertx.scala.core.http.WebSocketBase#writeFinalBinaryFrame but with an handler called when the operation completes

    Same as io.vertx.scala.core.http.WebSocketBase#writeFinalBinaryFrame but with an handler called when the operation completes

    Definition Classes
    ServerWebSocketWebSocketBase
  74. def writeFinalBinaryFrame(data: Buffer): ServerWebSocket

    Write a final WebSocket binary frame to the connection * @param data The data to write

    Write a final WebSocket binary frame to the connection * @param data The data to write

    returns

    a reference to this, so the API can be used fluently

    Definition Classes
    ServerWebSocketWebSocketBase
  75. def writeFinalBinaryFrameFuture(data: Buffer): scala.concurrent.Future[Unit]

    Like writeFinalBinaryFrame but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like writeFinalBinaryFrame but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
    ServerWebSocketWebSocketBase
  76. def writeFinalTextFrame(text: String, handler: Handler[AsyncResult[Unit]]): ServerWebSocket

    Same as io.vertx.scala.core.http.WebSocketBase#writeFinalTextFrame but with an handler called when the operation completes

    Same as io.vertx.scala.core.http.WebSocketBase#writeFinalTextFrame but with an handler called when the operation completes

    Definition Classes
    ServerWebSocketWebSocketBase
  77. def writeFinalTextFrame(text: String): ServerWebSocket

    Write a final WebSocket text frame to the connection * @param text The text to write

    Write a final WebSocket text frame to the connection * @param text The text to write

    returns

    a reference to this, so the API can be used fluently

    Definition Classes
    ServerWebSocketWebSocketBase
  78. def writeFinalTextFrameFuture(text: String): scala.concurrent.Future[Unit]

    Like writeFinalTextFrame but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like writeFinalTextFrame but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
    ServerWebSocketWebSocketBase
  79. def writeFrame(frame: WebSocketFrame, handler: Handler[AsyncResult[Unit]]): ServerWebSocket

    Same as io.vertx.scala.core.http.WebSocketBase#writeFrame but with an handler called when the operation completes

    Same as io.vertx.scala.core.http.WebSocketBase#writeFrame but with an handler called when the operation completes

    Definition Classes
    ServerWebSocketWebSocketBase
  80. def writeFrame(frame: WebSocketFrame): ServerWebSocket

    Write a WebSocket frame to the connection * @param frame the frame to write

    Write a WebSocket frame to the connection * @param frame the frame to write

    returns

    a reference to this, so the API can be used fluently

    Definition Classes
    ServerWebSocketWebSocketBase
  81. def writeFrameFuture(frame: WebSocketFrame): scala.concurrent.Future[Unit]

    Like writeFrame but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like writeFrame but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
    ServerWebSocketWebSocketBase
  82. def writeFuture(data: Buffer): scala.concurrent.Future[Unit]

    Like write but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like write but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
    ServerWebSocketWebSocketBaseWriteStream
  83. def writePing(data: Buffer): WebSocketBase

    Writes a ping frame to the connection.

    Writes a ping frame to the connection. This will be written in a single frame. Ping frames may be at most 125 bytes (octets).

    This method should not be used to write application data and should only be used for implementing a keep alive or to ensure the client is still responsive, see RFC 6455 Section section 5.5.2.

    There is no handler for ping frames because RFC 6455 clearly states that the only response to a ping frame is a pong frame with identical contents. * @param data the data to write, may be at most 125 bytes

    returns

    a reference to this, so the API can be used fluently

    Definition Classes
    ServerWebSocketWebSocketBase
  84. def writePong(data: Buffer): WebSocketBase

    Writes a pong frame to the connection.

    Writes a pong frame to the connection. This will be written in a single frame. Pong frames may be at most 125 bytes (octets).

    This method should not be used to write application data and should only be used for implementing a keep alive or to ensure the client is still responsive, see RFC 6455 section 5.5.2.

    There is no need to manually write a pong frame, as the server and client both handle responding to a ping from with a pong from automatically and this is exposed to users. RFC 6455 section 5.5.3 states that pongs may be sent unsolicited in order to implement a one way heartbeat. * @param data the data to write, may be at most 125 bytes

    returns

    a reference to this, so the API can be used fluently

    Definition Classes
    ServerWebSocketWebSocketBase
  85. def writeQueueFull(): Boolean

    This will return true if there are more bytes in the write queue than the value set using io.vertx.scala.core.http.ServerWebSocket#setWriteQueueMaxSize * @return true if write queue is full

    This will return true if there are more bytes in the write queue than the value set using io.vertx.scala.core.http.ServerWebSocket#setWriteQueueMaxSize * @return true if write queue is full

    Definition Classes
    ServerWebSocketWebSocketBaseWriteStream
  86. def writeTextMessage(text: String, handler: Handler[AsyncResult[Unit]]): ServerWebSocket

    Same as io.vertx.scala.core.http.WebSocketBase#writeTextMessage but with an handler called when the operation completes

    Same as io.vertx.scala.core.http.WebSocketBase#writeTextMessage but with an handler called when the operation completes

    Definition Classes
    ServerWebSocketWebSocketBase
  87. def writeTextMessage(text: String): ServerWebSocket

    Writes a (potentially large) piece of text data to the connection.

    Writes a (potentially large) piece of text data to the connection. This data might be written as multiple frames if it exceeds the maximum WebSocket frame size. * @param text the data to write

    returns

    a reference to this, so the API can be used fluently

    Definition Classes
    ServerWebSocketWebSocketBase
  88. def writeTextMessageFuture(text: String): scala.concurrent.Future[Unit]

    Like writeTextMessage but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Like writeTextMessage but returns a scala.concurrent.Future instead of taking an AsyncResultHandler.

    Definition Classes
    ServerWebSocketWebSocketBase

Inherited from WebSocketBase

Inherited from WriteStream[Buffer]

Inherited from ReadStream[Buffer]

Inherited from StreamBase

Inherited from AnyRef

Inherited from Any

Ungrouped