Emulating HTTP request/response over Web Sockets