refactor(socket) add onCloudCmd, onCD