ERROR: SmartWebSocketV2._on_close() takes 2 positional arguments but 4 were given
-
Why does this error occur? websocket - ERROR - error from callback <bound method SmartWebSocketV2._on_close of <SmartApi.smartWebSocketV2.SmartWebSocketV2 object at 0x10c0760a0>>: _on_close() takes 2 positional arguments but 4 were given.
sws.on_close = on_close
def on_close(wsapp):
logger.info(f"Connection closed: {wsapp}")