setter for events in socket client