modified socketevent
socketevent