mandrewcito / signalrcore

SignalR Core python client
https://mandrewcito.github.io/signalrcore/
MIT License
115 stars 53 forks source link

reconnect_interval does not seem to have any affect #102

Open wmmihaa opened 1 year ago

wmmihaa commented 1 year ago

Describe the bug I've set up my connection as following:

self.connection = HubConnectionBuilder()\
    .with_url(signalr_uri, options={"verify_ssl": False}) \
    .with_automatic_reconnect({
        "type": "raw",
        "enable_trace": False,
        "keep_alive_interval": 15,
        "reconnect_interval": 2000
    }).build()

When the client gets disconnected from the hub, it will continuously try to re-connect, but with no delay. I first tried using "interval" and set the interval to an array of integers [1,2,3,4,5], but the same thing happend although it stopped after five tries. I was not sure if the actual number was in seconds or milliseconds so I also tried with [1000,2000,3000...] but with the same result, no delay.

BTW... are all connection settings i seconds?

(but thanks for everything else ;) )