updates Event code in websocket server User