Make data optional in websocket text frames, disconnect on websocket close event.