feat: replace webrtc with ws relay

This commit is contained in:
edde746
2026-02-04 07:49:35 +01:00
parent 873936c28d
commit f67ca187a8
16 changed files with 826 additions and 454 deletions
@@ -302,6 +302,17 @@ class WatchTogetherProvider with ChangeNotifier {
);
}
// If we're the host, send our join info back so the new peer
// adds us to their participant list. This is done at provider
// level (in addition to sync manager) so it works even when
// no player is attached yet.
if (isHost && _peerService != null) {
_peerService!.sendTo(
message.peerId!,
SyncMessage.join(peerId: _peerService!.myPeerId!, displayName: _displayName, isHost: true),
);
}
notifyListeners();
}
break;