Web socket

Kiran_Podgu
Error is below

Access token generated successfully!
Traceback (most recent call last):
File "/home/runner/Zerodha-kite/main.py", line 54, in
ws = websocket.WebSocketApp(
AttributeError: module 'websocket' has no attribute 'WebSocketApp'. Did you mean: 'WebSocket'?
  • Kiran_Podgu
    Here is the sytnax for the above error.

    # Initialize a websocket connection
    ws = websocket.WebSocketApp(
    f"wss://ws.kite.trade?api_key={api_key}&access_token={access_token}",
    on_message=on_message
  • rakeshr
    ws = websocket.WebSocketApp(
    f"wss://ws.kite.trade?api_key={api_key}&access_token={access_token}",
    on_message=on_message
    Isn't related to the official python kiteconnect client.
  • Kiran_Podgu
    Thank you. This discussion is closed.
  • Kiran_Podgu
    This discussion has been closed.
This discussion has been closed.