update api for incoming socket event