Skip to content

Wait for the first WebSocket event from Kraken before updating the status to Connected or Reconnected #240

@LotuxPunk

Description

@LotuxPunk

Currently, the SDK shout an event Connected or Reconnected as soon as we send the subscription payload, we should wait for the first WebSocket event received (either a ping frame, a text frame with "ping" or a text frame with an actual event), so that recover mecanism suffer less from inaccuracy.

https://github.com/icure/icure-multiplatform-sdk/blob/16b4531b270da08577f9614b088e36655cfe9d57/cardinal-sdk/src/commonMain/kotlin/com/icure/cardinal/sdk/subscription/WebSocketSubscription.kt#L273-L287

https://github.com/icure/icure-multiplatform-sdk/blob/16b4531b270da08577f9614b088e36655cfe9d57/cardinal-sdk/src/commonMain/kotlin/com/icure/cardinal/sdk/subscription/WebSocketSubscription.kt#L299-L325

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions