websocket-driver icon indicating copy to clipboard operation
websocket-driver copied to clipboard

rejecting a connection

Open aarvid opened this issue 8 years ago • 0 comments

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)

aarvid avatar Oct 01 '17 13:10 aarvid