Skip to content

Commit

Permalink
fix: naming
Browse files Browse the repository at this point in the history
  • Loading branch information
tejasbadadare committed Jan 15, 2025
1 parent 059e6b5 commit 1be7862
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lazer/sdk/js/examples/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ client.addMessageListener((message) => {

// Monitor for all connections in the pool being down simultaneously (e.g. if the internet goes down)
// The connections may still try to reconnect in the background. To shut down the client completely, call shutdown().
client.addAllConnectionsDownHandler(() => {
client.addAllConnectionsDownListener(() => {
console.error("All connections are down!");
});

Expand Down
2 changes: 1 addition & 1 deletion lazer/sdk/js/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export class PythLazerClient {
* The connections may still try to reconnect in the background. To shut down the pool, call `shutdown()`.
* @param handler - Function to be called when all connections are down
*/
addAllConnectionsDownHandler(handler: () => void): void {
addAllConnectionsDownListener(handler: () => void): void {
this.wsp.addAllConnectionsDownListener(handler);
}

Expand Down

0 comments on commit 1be7862

Please sign in to comment.