Server side : how to deny/reject a websocket handshake

#1

My actions are: I added the MG_EV_WEBSOCKET_* hooks in my code.
My expectation & question is: I would like to know how the server-side may deny/reject a handshake request.
All the examples I viewed until now just simply accepted the request, returning from the main handler.
Is there a way to indicate to mongoose that the handshake was rejected. Through the pointer to the connection maybe?