Closed edushare closed 6 years ago
there should be a protection , if Datachanel is not available, message should be send through signaling
Hi edushare,
Thank you for your feedback.
The SDK provides public methods and events that you can use to handle this.
We would suggest listening to the DataChannelState Event (https://cdn.temasys.io/skylink/skylinkjs/latest/doc/classes/Skylink.html#event_dataChannelState).
If the state is not OPEN, you can send the message via Signaling using the sendMessage method (https://cdn.temasys.io/skylink/skylinkjs/latest/doc/classes/Skylink.html#method_sendMessage).