Websocket not establishing connection-AttributeError: NoneType object has no attribute sendMessage

prashanth100
I am not able to establish connection. when I try to subscribe token, I will get AttributeError: NoneType object has no attribute sendMessage. I tried all the possible way, didn't work

ws.subscribe([408065])

I followed the same way
https://github.com/zerodha/kite-connect-python-example/blob/master/stream.py

I subscribed to both kite connect Api, historical data. Could you please help me to resolve this issue?
  • rakeshr
    AttributeError: NoneType object has no attribute sendMessage
    Go through this thread. If still an error, you can post your complete websocket code here.
Sign In or Register to comment.