public class WebSocketSessionKt
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object |
close(WebSocketSession $receiver,
CloseReason reason,
kotlin.coroutines.experimental.Continuation<? super kotlin.Unit> p)
Send a close frame with the specified reason. May suspend if outgoing channel is full or
may throw an exception if it is already closed. The specified reason could be ignored if there was already
close frame sent (for example in reply to a peer close frame).
|
static java.lang.Object |
send(WebSocketSession $receiver,
java.lang.String content,
kotlin.coroutines.experimental.Continuation<? super kotlin.Unit> p)
Enqueues a text frame for sending with the specified content.
|
static java.lang.Object |
send(WebSocketSession $receiver,
byte[] content,
kotlin.coroutines.experimental.Continuation<? super kotlin.Unit> p)
Enqueues a final binary frame for sending with the specified content.
|
public static java.lang.Object close(WebSocketSession $receiver, CloseReason reason, kotlin.coroutines.experimental.Continuation<? super kotlin.Unit> p)
Send a close frame with the specified reason. May suspend if outgoing channel is full or may throw an exception if it is already closed. The specified reason could be ignored if there was already close frame sent (for example in reply to a peer close frame).
public static java.lang.Object send(WebSocketSession $receiver, java.lang.String content, kotlin.coroutines.experimental.Continuation<? super kotlin.Unit> p)
Enqueues a text frame for sending with the specified content.
May suspend if the outgoing queue is full, and throw an exception if the channel is already closed.
public static java.lang.Object send(WebSocketSession $receiver, byte[] content, kotlin.coroutines.experimental.Continuation<? super kotlin.Unit> p)
Enqueues a final binary frame for sending with the specified content.
May suspend if the outgoing queue is full, and throw an exception if the channel is already closed.