use a map to keep the connections between deviceId and server