websocket-driver
websocket-driver copied to clipboard
rejecting a connection
What is the proper way to reject a connection request before initiating a start connection?
From the literature on the web, I believe the web server should return an appropriate http status code such as 403 - Forbidden.
Should I raise an http-exception with code 403, that is(caveman2:throw-code 403)? should I wrap this in a lambda and return the closure? Should I use clack directly to build the response?
websocket-caveman-chat is a proof of concept/example project which right now uses (caveman2:throw-code 403)