roll back websocket code