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
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