Websocket Error on Closing


  • Error info: __on_close() takes 2 positional arguments but 4 were given

    I am receiving this error while trying to close websocket connection. I have followed the sample code at https://github.com/angel-one/smartapi-python without any changes to the close() functions.

    The connnection doesnt close and
    2022-10-04 17:17:13.857041 : Start task in the background
    {'task': 'hb', 'channel': '', 'token': '', 'user': ', 'acctid': ''}
    HeartBeat Sending Failed

    this keeps coming (removed token user and acctid values in quote).

    @admin