Add error handling into the API
Whenever errors occur, they should be propagated up to the application somehow so that useful and informative messages can be shown in debug logs or even to the user of an application that explain what went wrong.
Especially when connection establishment fails it would be good to know why it did. My feeling is that most times people complain about things not working these days it's due to STUN/TURN failures with their network setup. If we had better error reporting it would be easier for people to troubleshoot their issues and we'd get less bug noise. I think this should be prioritized.
I at least added some ICE connection state stuff and debug logging