Skip to content

Commit 4891b71

Browse files
author
ionut.stan
committed
Merge github.com:bigstepinc/jsonrpc-bidirectional
2 parents cebef4d + ee4ff16 commit 4891b71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.MD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,8 @@ jsonrpcServer.addPlugin(new JSONRPC.Plugins.Server.AuthorizeAll());
266266

267267
const webSocket = new WebSocket("ws://localhost:8080/api");
268268
await new Promise((fnResolve, fnReject) => {
269-
webSocket.on("open", fnResolve);
270-
webSocket.on("error", fnReject);
269+
webSocket.addEventListener("open", fnResolve);
270+
webSocket.addEventListener("error", fnReject);
271271
});
272272

273273

0 commit comments

Comments
 (0)