rolledback api of WebSocket to only do absolute basics