pass event into callback on socket update