webcast / webcast.js

API and documentation for the webcast websocket protocol
MIT License
79 stars 26 forks source link

Allow handling open and error events at creation time. #27

Closed smimram closed 2 years ago

smimram commented 2 years ago

This allows registering handlers when errors occur when the constructor code is executed, which allows reconnecting if necessary. We also add a way to register a handler for open so that we know that we are connected.

smimram commented 2 years ago

Should fix #26.

toots commented 2 years ago

Implemented in be7a931!