Skip to content

In async server is not possible to disconnect client while sending him error message? #804

@MaksymSofer

Description

@MaksymSofer

I`m using asyncServer implementation.
I want to validate JWT token from the client and if it is not valid, disconnect him with the error message being sent to him.
Is it not possible?

In my current implementation, i`m throwing
raise ConnectionRefusedError('Close')

I've assumed that this should send "Close" message and disconnect the connection.
But instead, it just sending to the client error message " Error:Close"

Version being used 5.4.0
Python 3.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions