-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Detect Disconnection events on SUB socket? #201
Comments
Hmm I'll have to try this out. I've been wanting to see if these work.
…On Thu, Nov 14, 2024, 06:32 Odysseas Gabrielides ***@***.***> wrote:
How to detect Disconnection event on a PUB socket?
I used:
let mut monitor = socket.monitor(); and monitor.try_next() on a thread.
The only event that I got is SocketEvent::Connected even if I manually
stopped the Publisher side on purpose.
How to detect SocketEvent::Disconnected?
—
Reply to this email directly, view it on GitHub
<#201>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEIQCA63DE54O6H73UJXNPL2ASC3TAVCNFSM6AAAAABRYVWNQSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGY2TQNJUGU2DIMY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
@CableSynth Cool, let me know if you manage to do this |
It looks like this might not be implemented? If you look at REP sockets, they send a Lines 93 to 98 in 07c65dc
However, SUB sockets do not do this. Lines 110 to 112 in 07c65dc
I'm not a ZeroMQ expert but this may just be an oversight. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to detect Disconnection event on a PUB socket?
I used:
let mut monitor = socket.monitor();
andmonitor.try_next()
on a thread. The only event that I got isSocketEvent::Connected
even if I manually stopped the Publisher side on purpose.How to detect
SocketEvent::Disconnected
?The text was updated successfully, but these errors were encountered: