Skip to content

Document new WebsocketProvider usage vs WebsocketPolyfill #582

Open
@georeith

Description

@georeith

WebsocketPolyfill was previously used to pass a websocket polyfill for NodeJS. Now it seems to have been superseded by websocketProvider however this is undocumented.

Looking at the code I notice that url and parameters are now ignored by HocuspocusProvider when you pass a custom websocketProvider and should be passed directly to it.

Would be helpful to document the intended usage of websocketProvider, and perhaps consider bringing back the ability to polyfill Websocket without the additional configuration changes.

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions