Heartbeath problem #636
Replies: 1 comment
-
I fix the problem. Expectedperiod = Duration.ZERO because i don't need an heartbeath server. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
i'm using krossbow with OkHttpClient
This is my code
val wsClient = OkHttpWebSocketClient( client = OkHttpClient() ) val config: StompConfig = StompConfig().apply { heartBeat = HeartBeat(minSendPeriod = Duration.parse("PT10S"), expectedPeriod = Duration.parse("PT20S")) } val stompClient = StompClient(wsClient, config = config )
Heartbeat doesn't seem to work. In fact the app crashes because the ws expects a message to be sent.
Can you help me?
Beta Was this translation helpful? Give feedback.
All reactions