Socket event library