Skip to content
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

Access Client Status In Client Disconnected Handler #1291

Closed
ikbalkazanc opened this issue Nov 10, 2021 · 1 comment
Closed

Access Client Status In Client Disconnected Handler #1291

ikbalkazanc opened this issue Nov 10, 2021 · 1 comment
Labels
question It is a question regarding the project

Comments

@ikbalkazanc
Copy link

Question

public async Task HandleClientDisconnectedAsync(MqttServerClientDisconnectedEventArgs eventArgs)
{
    var client = await _server.GetClientStatusAsync().Result.Where(x=>x.ClientId == eventArgs.ClientId);
}

How can I access the client's status. In the above code "client" is null. at least access the session data?

Which project is your question related to?

  • Client
  • MQTTnet.Server standalone
  • Server
@ikbalkazanc ikbalkazanc added the question It is a question regarding the project label Nov 10, 2021
@chkr1011
Copy link
Collaborator

chkr1011 commented Aug 3, 2022

This will be implemented in version 4.1.

@chkr1011 chkr1011 closed this as completed Aug 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question It is a question regarding the project
Projects
None yet
Development

No branches or pull requests

2 participants