method

reject_unauthorized_connection

reject_unauthorized_connection()
public

Closes the WebSocket connection if it is open and returns an “unauthorized” reason.