interface DefaultWebSocketServerSession : DefaultWebSocketSession, WebSocketServerSession
Represents a server-side web socket session with all default implementations
See Also
abstract val call: ApplicationCall
Associated received call that originating this session |
val WebSocketServerSession.application: Application
An application that started this web socket session |
|
var DefaultWebSocketServerSession.pingInterval: Duration?
Ping interval or |
|
var DefaultWebSocketServerSession.timeout: Duration
A timeout to wait for pong reply to ping otherwise the session will be terminated immediately.
It doesn't have any effect if pingInterval is |
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 |