Update to latest websocket spec version
Make the api compatible with latest spec