A function of two arguments, socket and header is returned.
The socket argument indicates the low-level
socket descriptor of the websocket client. The header argument
contains a parsed HTTP GET request. When invoked, the function may
examine the GET request and respond accordingly, usually with a valid
HTTP 200 response, or a 40* response indicating an error.