This behavior can be disabled by setting the autoResubscribe option to false.Īnd if the previous connection has some unfulfilled commands (most likely blocking commands such as brpop and blpop), When reconnected, the client will auto subscribe to channels that the previous connection subscribed to. Will be lost forever if the user doesn't call nnect() manually. Return value isn't a number, ioredis will stop trying to reconnect, and the connection The return value represents how long (in ms) to wait to reconnect. The argument times means this is the nth reconnection being made and RetryStrategy is a function that will be called when the connection is lost. Refer to CHANGELOG.md for features and bug fixes introduced in v5.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |