chickadee » websockets » accept-connection

accept-connection #!optional procedureparameter

A one-argument procedure taking as argument the URL path of the current page which tells whether to accept the websocket connection. If #t accept, #f reject. IT IS HIGHLY RECOMMENDED that this parameter be set otherwise it opens up your application to potential security vulnerabilities. You will probably want to verify it is coming from a specific source. The default is to accept all connections.