question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to know the client connect status

See original GitHub issue

How to know IEasyClient<T> client connect state? Shall I use client.LocalEndPoint == null as a disconnect status?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
chucklucommented, Jul 14, 2021

What did you mean by connect status?

public class EasyClient<TReceivePackage> : IEasyClient<TReceivePackage>{
 protected IChannel<TReceivePackage> Channel { get; private set; }
}

The Channel has IsClosed property.

For interface IEasyClient<TReceivePackage>, you might register Closed event to handle the status manually. Anyway you can implement your own class to maintain the status by yourself.

0reactions
DavidZhiXingcommented, Dec 31, 2021

太久,我有点忘记了,似乎后面解决起来挺简单的,你试试RemoteEndPoint…或者你能再详细描述一下你的问题/需求吗?

@DavidZhiXing, 后来你是如何解决此问题的? 谢谢

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to check current status of client connection via command ...
Unfortunately there is no command to check its status, that information is only available on the server. You could check netstat -t and...
Read more >
Get connection status on Socket.io client - node.js
You can check the socket.connected property: var socket = io.connect(); console.log('check 1', socket.connected); socket.on('connect', ...
Read more >
Checking Active MQTT Client Connections
Publish it's current connection status to an agreed on topic. Publish a last will message on the connection status topic to indicate failure....
Read more >
Monitor connected remote clients for activity and status
Click Remote Client Status to navigate to the remote client activity and status user interface in the Remote Access Management Console. You will ......
Read more >
Client Connection Status
See Configure > Connection Management > Client Connection Control. Total Clients for which Connections were Closed. Total since Content Gateway last started.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found