Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nwaughachukwuma committed Jan 21, 2024
1 parent 8713cf4 commit 9f2131d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default class WSReqonet extends EventEmitter {
this.ws = new window.WebSocket(url, protocols);
this.connect();
}
private onOpen = () => {
private onopen = () => {
this.emit("open");
this.forcedClose = false;
};
Expand Down Expand Up @@ -80,7 +80,7 @@ export default class WSReqonet extends EventEmitter {
private connect = () => {
this.ws.onclose = this.onclose;
this.ws.onerror = this.onError;
this.ws.onopen = this.onOpen;
this.ws.onopen = this.onopen;
this.ws.onmessage = this.onmessage;

if (this.queueMessage) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"prepare": "husky install",
"tsc": "tsc",
"build": "tsup",
"test": "tsd && ava",
"test": "tsc && tsd && ava",
"pretty-quick": "pretty-quick --staged"
},
"sideEffects": false,
Expand Down

0 comments on commit 9f2131d

Please sign in to comment.