two things: 1. embarassing typo. 2. since the object being passed by the server won't exactly match the object in the array, remove based on connectionId