Getting Error 'socket' object has no attribute 'pending' in Websocket 2.0


  • Hi Team, when subscribing to Nifty fno tokens I am getting error like "Socket object has no attribute pending when requesting the data at the line
    self.wsapp.send(json.dumps(request_data)).

    Let me know how to resolve this issue