Skip to content

fix: update on_ticker signature to accept ws argument (closes #206)#222

Open
botbikamordehai2-sketch wants to merge 1 commit into
s4w3d0ff:masterfrom
botbikamordehai2-sketch:fix/issue-206-1779953051
Open

fix: update on_ticker signature to accept ws argument (closes #206)#222
botbikamordehai2-sketch wants to merge 1 commit into
s4w3d0ff:masterfrom
botbikamordehai2-sketch:fix/issue-206-1779953051

Conversation

@botbikamordehai2-sketch

Copy link
Copy Markdown

What

The on_ticker callback in dictTicker.py was failing with on_message() takes 2 positional arguments but 3 were given because the websocket-client library calls message handlers with both the websocket instance and the message data as separate arguments.

Fix

Updated on_ticker(self, data) to on_ticker(self, ws, data) to match the expected callback signature used by the underlying websocket library.

Closes #206

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

websocket example not working

1 participant