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.
2 parents cebef4d + ee4ff16 commit 4891b71Copy full SHA for 4891b71
README.MD
@@ -266,8 +266,8 @@ jsonrpcServer.addPlugin(new JSONRPC.Plugins.Server.AuthorizeAll());
266
267
const webSocket = new WebSocket("ws://localhost:8080/api");
268
await new Promise((fnResolve, fnReject) => {
269
- webSocket.on("open", fnResolve);
270
- webSocket.on("error", fnReject);
+ webSocket.addEventListener("open", fnResolve);
+ webSocket.addEventListener("error", fnReject);
271
});
272
273
0 commit comments