Wrote code to parse HTTP headers and generate WebSockets accept