refactor(socket) mv {add,remove}Listener to CloudFunc