yjs / y-websocket

Websocket Connector for Yjs
https://docs.yjs.dev/ecosystem/connection-provider/y-websocket
MIT License
523 stars 261 forks source link

Let caller of setupWSConnection create their own callback function #92

Closed canadaduane closed 1 year ago

canadaduane commented 2 years ago

This is an up-to-date PR that replaces #61

Nothing has changed other than rebasing onto master. I've tested 2 of the 3 cases mentioned by @dmonad in https://github.com/yjs/y-websocket/pull/61#issuecomment-822020739

The untested case is the CALLBACK_URL scenario, because I don't have such a callback server set up. If anyone could test that this works for them in the "regular" scenario, that would be appreciated!

Huly®: YJS-745