Sockets, when to use socket actions?