We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1493547 commit b16fdcfCopy full SHA for b16fdcf
1 file changed
web/client.js
@@ -69,6 +69,13 @@ class _WsLink {
69
70
connect() {
71
return new Promise((resolve, reject) => {
72
+ if (!WS) {
73
+ return reject(
74
+ new Error(
75
+ 'no WebSocket implementation available; provide a global WebSocket or install the optional `ws` package'
76
+ )
77
+ );
78
+ }
79
const ws = new WS(this.url);
80
this._ws = ws;
81
const onOpen = () => {
0 commit comments