method

reject_unauthorized_connection

reject_unauthorized_connection()
public

Closes the WebSocket connection if it is open and returns a 404 “File not Found” response.