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 a42a502 commit 2efd018Copy full SHA for 2efd018
README.MD
@@ -242,8 +242,8 @@ jsonrpcServer.addPlugin(new JSONRPC.Plugins.Server.AuthorizeAll());
242
243
const webSocket = new WebSocket("ws://localhost/api");
244
await new Promise((fnResolve, fnReject) => {
245
- webSocket.on("open", fnResolve);
246
- webSocket.on("error", fnReject);
+ webSocket.addEventListener("open", fnResolve);
+ webSocket.addEventListener("error", fnReject);
247
});
248
249
0 commit comments