Description
There is no way preventing websocket provider from the initial connection.
Steps to reproduce the bug
Steps to reproduce the behavior:
- Create an instance of HocuspocusProviderWebsocket.
- Socket will start auto-conenction.
Expected behavior
There should an option to create in instance without auto connection. Otherwise the condition
if (!this.shouldConnect) {
return;
}
doesn't make any sense.
Most likely we should be able to pass shouldConnect as a configuration.
Screenshot, video, or GIF
Environment?
- Hocuspocus version: 3.1.0
EDdt:
Additional:
I can create a PR soon, if I git confirmation that this is bug
Description
There is no way preventing websocket provider from the initial connection.
Steps to reproduce the bug
Steps to reproduce the behavior:
Expected behavior
There should an option to create in instance without auto connection. Otherwise the condition
doesn't make any sense.
Most likely we should be able to pass shouldConnect as a configuration.
Screenshot, video, or GIF
Environment?
EDdt:
Additional:
I can create a PR soon, if I git confirmation that this is bug