update socket server events handling