evConnected event?

Post Reply
AG70
Posts: 15
Joined: Sun May 19, 2013 5:48 pm

evConnected event?

Post by AG70 » Tue Aug 10, 2021 1:53 pm

Hi,

So now when evConnected event has been removed from version 2.9.0 how to know if the client is Connected (for the first time) or Recontacted at evRecoverySucceeded event?

Thanks,
AG
Kind Regards,
Asaf
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: evConnected event?

Post by alt » Thu Aug 12, 2021 7:48 pm

Hello Asaf,

ConnectAsync method returns true when connection is successful and false when not. So your application knows the connection result. You can also check client.Status property, it should be Open when connected and Close when disconnected.

When you use connection recovery feature you need to wait until evRecoverySucceeded event is raised to continue the sending.
AG70
Posts: 15
Joined: Sun May 19, 2013 5:48 pm

Re: evConnected event?

Post by AG70 » Fri Aug 13, 2021 1:40 pm

Hi,

Thanks for your help.

Asaf
Kind Regards,
Asaf
Post Reply