Assign a connectionId to each connection