Skip to content

Commit

Permalink
chore(iqoption): Fix binding issue in IQOptionProvider WebSocketClien…
Browse files Browse the repository at this point in the history
…t initialization
  • Loading branch information
andredezzy committed Aug 14, 2024
1 parent 1f251af commit 024a5af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/iqoption/lib/IQOptionProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class IQOptionProvider implements BaseIQOptionProvider {
baseURL: 'https://trade.gomerebroker.com/api',
})

this.webSocket = new WebSocketClient(this.refreshLogIn)
this.webSocket = new WebSocketClient(this.refreshLogIn.bind(this))
}

public async enableCorsBypass(): Promise<void> {
Expand Down

0 comments on commit 024a5af

Please sign in to comment.