clean up updateSocketId, add device-status topic to broadcast messages when a device goes online or offline