interface WebSocketServerSession : WebSocketSession
Represents a server-side web socket session
abstract val call: ApplicationCall
Associated received call that originating this session |
val WebSocketServerSession.application: Application
An application that started this web socket session |
fun CoroutineScope.pinger(outgoing: SendChannel<Frame>, period: Duration, timeout: Duration, pool: ObjectPool<ByteBuffer> = KtorDefaultPool): SendChannel<Pong>
Launch pinger coroutine on CoroutineScope that is sending ping every specified period to outgoing channel, waiting for and verifying client's pong frames. It is also handling timeout and sending timeout close frame |
|
fun CoroutineScope.pinger(outgoing: SendChannel<Frame>, period: <ERROR CLASS>, timeout: <ERROR CLASS>, pool: ObjectPool<ByteBuffer> = KtorDefaultPool): SendChannel<Pong>
Launch pinger coroutine on CoroutineScope that is sending ping every specified period to outgoing channel, waiting for and verifying client's pong frames. It is also handling timeout and sending timeout close frame |
interface DefaultWebSocketServerSession : DefaultWebSocketSession, WebSocketServerSession
Represents a server-side web socket session with all default implementations |