Greetings everyone,
i have a question regarding Kotlin-React and websockets.
In plain React it is (according to my research) common to instantiate a single WebSocket instance at the root of your application and then pass it down via props.
But is there an alternative (Edit: idiomatic) way to share this single instance in Kotlin React? Like using a top level declaration or an object handling that connection?
Thank you for your answers in advance!