✨🤝✨ Build instant multiplayer webapps, no server required — Magic WebRTC matchmaking over BitTorrent, Nostr, MQTT, IPFS, Supabase, and Firebase
MIT License
Bot releases are visible (Hide)
password
argument.makeAction()
now has referential equality when called multiple times with the same name argument. This makes it better suited for reactive frameworks. Thanks to @rogersanick for suggesting it.Published by dmotz 3 months ago
joinRoom()
now accepts a third argument, a function that will be called if a user tries to join a room with a password that doesn't match other users (docs).Published by dmotz 8 months ago
relayUrls
and relayRedundancy
options, so there is shared terminology across strategies and a smaller configuration API. These strategies also expose a getRelaySockets()
function that returns a map of URLs to WebSockets.trackerUrls
has been renamed relayUrls
trackerRedundancy
has been renamed relayRedundancy
getTrackers()
has been renamed getRelaySockets()
brokerUrls
has been renamed relayUrls
brokerRedundancy
has been renamed relayRedundancy
Published by dmotz 9 months ago
Published by dmotz 11 months ago
swarmAddresses
in IPFS config has been replaced by libp2pConfig
Published by dmotz 11 months ago
firebase@^10.6.0
Published by dmotz 11 months ago
getOccupants()
Published by dmotz 11 months ago
databaseURL
as the appId
to joinRoom()
(either with or without the https://
prefix), e.g. 'trystero-demo.firebaseio.com
, not just 'trystero-demo'
. This allows support for other regions which use different url structures. Thanks to @matthewjumpsoffbuildings for diagnosing and proposing a fix.Published by dmotz over 1 year ago
getTrackers()
(🌊 BitTorrent only) Returns an object of BitTorrent tracker URL keys mapped to their WebSocket connections. This can be useful for determining the state of the user's connection to the trackers and handling any connection failures. (Thanks to @jeremyckahn for implementing)Published by dmotz over 1 year ago
getPeers()
now returns a map of peer IDs to underlying RTCPeerConnection
objects, previously returned an array of IDs (credit to @jeremyckahn for implementing)