It's easy. You can set the "Room name" as the Code.
So in my game (two players), the Host creates a game, and joins a 4-digit (random number) Room.
It displays the Host that 4-digit code, and Share button.
They can tell/share the Code to their friend, and they can "Join", enter the code, and that will be the same Room name so they connect together.