为什么 SignalR 连接 pedirod 是一个数组,而不是单个值?
Why SignalR connection pedirod is an array, not a single value?
.withAutomaticReconnect([0, 3000, 5000, 10000, 15000, 30000])
//.withAutomaticReconnect([0, 2000, 10000, 30000]) The default intervals.
为什么SignalR连接pedirod是一个数组,而不是单个值?比如
.withAutomaticReconnect(3000)
根据this文章,
Without any parameters, withAutomaticReconnect() configures the client
to wait 0, 2, 10, and 30 seconds respectively before trying each
reconnect attempt, stopping after four failed attempts.
当您覆盖默认值时,您应该提供一个数组来表示需要重试的次数。
.withAutomaticReconnect([0, 3000, 5000, 10000, 15000, 30000])
//.withAutomaticReconnect([0, 2000, 10000, 30000]) The default intervals.
为什么SignalR连接pedirod是一个数组,而不是单个值?比如
.withAutomaticReconnect(3000)
根据this文章,
Without any parameters, withAutomaticReconnect() configures the client to wait 0, 2, 10, and 30 seconds respectively before trying each reconnect attempt, stopping after four failed attempts.
当您覆盖默认值时,您应该提供一个数组来表示需要重试的次数。