How do I program a Bluetooth multiplayer game

Yes, if you want Bluetooth support you need an extension.

If you need to create a multiplayer game you can use a client-server solution. For instance Colyseus.