y-websocket
y-websocket copied to clipboard
Fixing errors with CommonJS import of `ws`
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:
- Importing
WebSocketexplicitly fromws - Updating the
package.jsonto explicitly call out this as an ES module (similar PRs: #104) - Updating
README.mdfor updated boilerplate