dmotz / trystero

✨🤝✨ Build instant multiplayer webapps, no server required — Magic WebRTC matchmaking over BitTorrent, Nostr, MQTT, IPFS, Supabase, and Firebase
https://oxism.com/trystero
MIT License
1.14k stars 86 forks source link

Custom IPFS Gateway #25

Closed vexxvakan closed 1 year ago

vexxvakan commented 1 year ago

We are currently looking into using Trystero for our decentralised gaming client.

Is it possible to use our custom IPFS gateway instead of a public one to guarantee uptime?

dmotz commented 1 year ago

Yes, in the config object you pass to joinRoom() (using the IPFS strategy) you can specify a swarmAddresses property which expects an array of addresses (for reference).

Check out @libp2p/webrtc-star-signalling-server for more details on running a signaling server.

dmotz commented 1 year ago

Feel free to reopen if you have any questions.