You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just create a nats client , the client can subscribe events and works fine, if I stop the nats.exe running, and also drop this nats client, why I still can receive this callback of event Event::ClientError which I register with .event_callback(). is there any way I can stop this callback? such as client.close() or anything else can stop receive this callback?
the create client params as below: ...... let options = ConnectOptions::default() .retry_on_initial_connect() .event_callback(callback); let client = options.connect(ip).await.unwrap(); ......
The text was updated successfully, but these errors were encountered:
I just create a nats client , the client can subscribe events and works fine, if I stop the nats.exe running, and also drop this nats client, why I still can receive this callback of event Event::ClientError which I register with .event_callback(). is there any way I can stop this callback? such as client.close() or anything else can stop receive this callback?
the create client params as below:
...... let options = ConnectOptions::default() .retry_on_initial_connect() .event_callback(callback); let client = options.connect(ip).await.unwrap(); ......
The text was updated successfully, but these errors were encountered: