move all the websocket support to the websocket module