Kotak-Neo / kotak-neo-api

113 stars 105 forks source link

Fixed issues with acessing weboscket data #63

Open prathwishm opened 1 year ago

prathwishm commented 1 year ago

1) Weboscket order updates can be handled in user defined function by acessing class object 2) Weboscket data can be accessed in user defined functions without using client._NeoAPI__on_message = on_message 3) Commented out print function in HSWebSocketLib.py. Which would keep printing "updates ......" on each update from webscoket

nbharadvajdatamatics commented 11 months ago

@prathwishm What's the point of making this __on_message private function as public? anyway user is passing on_message function at the time of login and the data will be sent to user defined function.

prathwishm commented 11 months ago

I was unable to get ws data in my desired function, making this change helped me to access the ws data using client.on_message = my_desired_on_message_function