Skip to content

On Logout: Unset Presence #5

Description

@jrvaja

Hey Team,
@jondubois
This is very nice plugin for SocketCluster to manage Presence of user.

I would request you to suggest me best solution, once user logout it should unset the presence of the user. In other words, it will be great if we can handle the presence of the user manual events.

I emit the below function to unset authentication and unset user presence.

socket.on('logout', function () {
  socket.deauthenticate();
});

But sometime, it still shows online presence until I close the browser.

It will be highly appreciated if you could assist me in this case.

Best Regards,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions