<How to probably handle websocket call back in kot...
# stackoverflow
u
How to probably handle websocket call back in kotlin? This is my first time dealing with web sockets I have a websocket connection using okhttp inside a WebSocketManager class I also have a listener that extends WebSocketListener that is passed to this connection for call backs, this websocket listener overrides few methods one of them is override fun onMessage(webSocket: WebSocket, text: String) {} What is the proper way to share this data from the manager class with the compose screen? what I did was that inside this manager class (which I...