yjs / y-websocket

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

Fixing errors with CommonJS import of `ws` #108

Closed kellydunn closed 2 years ago

kellydunn commented 2 years ago

Hello there!

When attempting to get a Hello World of y-websocket working as a client running node v17.8.0, I encountered a few errors regarding missing imports for ws in src/y-websocket.js. This PR includes the following to get a fully functioning Hello World moving from the client's perspective:

Huly®: YJS-754