Package io.ktor.http.cio.websocket
Functions
Link copied to clipboard
fun CoroutineScope.pinger(outgoing: SendChannel<Frame>, period: Duration, timeout: Duration, pool: ObjectPool<ByteBuffer> = KtorDefaultPool): SendChannel<Frame.Pong>
Content copied to clipboard
Link copied to clipboard
fun WebSockets(pingInterval: Duration?, timeout: Duration, maxFrameSize: Long, masking: Boolean): WebSockets
Content copied to clipboard
Properties
Link copied to clipboard
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 null
(pinger is disabled).