open class WebSocketFrame
A WebSocket frame that represents either text or binary data.
A WebSocket message is composed of one or more WebSocket frames.
If there is a just a single frame in the message then a single text or binary frame should be created with final = true.
If there are more than one frames in the message, then the first frame should be a text or binary frame with final = false, followed by one or more continuation frames. The last continuation frame should have final = true.
NOTE: This class has been automatically generated from the io.vertx.core.http.WebSocketFrame non RX-ified interface using Vert.x codegen.
WebSocketFrame(delegate: WebSocketFrame) |
static val __TYPE_ARG: TypeArg<WebSocketFrame> |
open fun binaryData(): Buffer |
|
open static fun binaryFrame(data: Buffer, isFinal: Boolean): WebSocketFrame
Create a binary WebSocket frame. |
|
open static fun continuationFrame(data: Buffer, isFinal: Boolean): WebSocketFrame
Create a continuation frame |
|
open fun equals(other: Any?): Boolean |
|
open fun getDelegate(): WebSocketFrame |
|
open fun hashCode(): Int |
|
open fun isBinary(): Boolean |
|
open fun isContinuation(): Boolean |
|
open fun isFinal(): Boolean |
|
open fun isText(): Boolean |
|
open static fun newInstance(arg: WebSocketFrame): WebSocketFrame |
|
open static fun pingFrame(data: Buffer): WebSocketFrame
Create a ping WebSocket frame. Will be a final frame. There is no option for non final ping frames. |
|
open static fun pongFrame(data: Buffer): WebSocketFrame
Create a pong WebSocket frame. Will be a final frame. There is no option for non final pong frames. |
|
open fun textData(): String |
|
open static fun textFrame(str: String, isFinal: Boolean): WebSocketFrame
Create a text WebSocket frame. |
|
open fun toString(): String |