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 WebSocket explicitly from ws
Updating the package.json to explicitly call out this as an ES module (similar PRs: #104)
Hello there!
When attempting to get a Hello World of
y-websocket
working as a client running nodev17.8.0
, I encountered a few errors regarding missing imports forws
insrc/y-websocket.js
. This PR includes the following to get a fully functioning Hello World moving from the client's perspective:WebSocket
explicitly fromws
package.json
to explicitly call out this as an ES module (similar PRs: #104)README.md
for updated boilerplateHuly®: YJS-754