Does a defib need to be connected to power/socket?

No, this is not necessary. The defib has a battery that can deliver more than 200 shocks and this battery has a 4-year manufacturer’s warranty.