Added accept parameter to websocket