Skip to content

Commit

Permalink
fix: added fake room for scenes with offline:offline adapter (#2492)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidejensen authored Oct 18, 2024
1 parent 562ed66 commit fd557f3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ public async UniTask<bool> StartAsync()
current = wssRoomFactory();
else if (adapterUrl.Contains("https://"))
current = httpsRoomFactory();
else if (adapterUrl.Contains("offline:offline"))
current = new IConnectiveRoom.Fake();
else
throw new InvalidOperationException($"Cannot determine the protocol from the about url: {adapterUrl}");

Expand Down

0 comments on commit fd557f3

Please sign in to comment.