I would like to push events from the server that o...
# kotlinx-rpc
d
I would like to push events from the server that occur irregularly and sometimes with long pauses between them. I have found that the connection drops after 60 seconds. My WebSocket configuration is either incorrect or being ignored. How can I ensure that the connection stays open until the client terminates the connection?
a
I'm not sure what is this
resource
function. Configuration is off here. It should be like this:
Copy code
rpc {
    rpcConfig {
        waitForServices = true
        
        timeout = Duration.INFINITE
        pingInterval = 30.seconds
    }

    // register services here
}
d
Great, the connection stays open and even messages with a 75-second pause are received by the client! 👍
🔥 1