Timothy Joseph
01/05/2024, 2:45 PMOliver.O
01/06/2024, 11:29 AMTimothy Joseph
01/06/2024, 2:36 PMRawWebsocketSession
as mentioned there I had to use sendSerializedBase()
, and that throws this error
This API is internal in Ktor and should not be used. It could be removed or changed without notice.
Oliver.O
01/06/2024, 6:36 PMRawWebsocketSession
? What's your use case?Timothy Joseph
01/07/2024, 7:55 AMincoming.receiveAsFlow()
Oliver.O
01/07/2024, 2:43 PM<logger name="io.ktor" level="trace"/>
to chat/src/backendMain/resources/logback.xml
and start the sample with an environment variable `KTOR_LOG_LEVEL=TRACE ./gradlew run`:
2024-01-07 15:42:44.997 [eventLoopGroupProxy-3-1] TRACE io.ktor.websocket.WebSocket - WebSocket Pinger: sending ping frame
2024-01-07 15:42:44.999 [eventLoopGroupProxy-3-2] TRACE io.ktor.websocket.WebSocket - WebSocketSession(StandaloneCoroutine{Active}@431251b0) receiving frame Frame PONG (fin=true, buffer len = 76)
2024-01-07 15:42:45.000 [eventLoopGroupProxy-3-3] TRACE io.ktor.websocket.WebSocket - WebSocket Pinger: received valid pong frame Frame PONG (fin=true, buffer len = 76)
Timothy Joseph
01/07/2024, 3:03 PMOliver.O
01/07/2024, 3:21 PMponger
function: https://github.com/ktorio/ktor/blob/main/ktor-shared/ktor-websockets/common/src/io/ktor/websocket/PingPong.ktTimothy Joseph
01/07/2024, 3:23 PM