Skip to content

Commit

Permalink
Updated url
Browse files Browse the repository at this point in the history
  • Loading branch information
yubarajshrestha committed Mar 10, 2022
1 parent 522ddc0 commit f4b7af4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sarara.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Sarara {
}

connect() {
this.socket = io(this.options.url, this.options);
this.socket = io(this.options.url ?? 'http://localhost:9000', this.options);
this.socket.on('reconnect', () => {
Object.values(this.channels).forEach((channel) => channel.subscribe());
});
Expand Down

0 comments on commit f4b7af4

Please sign in to comment.