Add multimethods for socket-event.