treat websockets as a normal HTTP method