Skip to content

How to tell who disconnect ws? #1642

@poor1017

Description

@poor1017

Hi @uNetworkingAB

Thank you for your project!

I want to know how to tell who disconnect ws in .close? Server or client?

In .close = [this](auto *ws, int code, std::string_view message) {
I can only get code, but the value 1000 can not identify the one who disconnect.

Thank you.

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