Hi, everyone, it's so strange that i can't wait until eventHub fully connected. For example for Session - you have session.initializing that i can await for to garatee that i have ready to work session.
If i write something like this:
console.log(session.eventHub.isConnected())
session.eventHub.connect()
console.log(session.eventHub.isConnected())
it shows me false, false.
and because of this function is not async and is not returning a promise, i can't await of it.
session.eventHub.disconnect() behaves in a similar way.
It causes many problems when I need to connect-disconnect several times in a row. Please help!