Skip to content

OneLobby Unity 0.7.1

Choose a tag to compare

@ParkerTonra ParkerTonra released this 15 Nov 04:06
· 331 commits to main since this release

OneLobby 0.7.1: npm onelobby 0.7.1, create-onelobby 0.1.3, NuGet OneLobby.* 0.7.1, and this Unity package.

Unity install: Package Manager > Add package from tarball, or put the .tgz in Packages/ and reference it as file:com.onelobby.unity-0.7.1.tgz in manifest.json. Natives for Windows, Linux, macOS and Android are included.

New: TURN for Direct mode (all clients)

  • Host and joiner take ICE servers with TURN logins: IceServers / JoinDirectOptions in C#, iceServers in JS, ice_servers in GDScript. The host's entries reach every joiner through the hub's welcome, and a joiner can add its own.
  • Relay-only really forces the relay: the link sends and accepts only relay candidates.
  • TURN login helpers for coturn shared-secret relays: TurnLogin in C#, turnLogin() / turnCredential() in JS, OneLobbyTurn in GDScript.
  • When a TURN entry is set, a link that does not get ready in half the ready timeout retries once relay-only (GDScript joins JS and C#; C# now does it in Direct mode too).

Fixed

  • ice_failed now says what to try next: add a relay (TURN), check that the relay is reachable, or port-forward on the host.
  • Relay-only with no TURN entry fails at once with ice_failed instead of waiting out the ready timeout.

Docs

  • New recipe docs/recipes/turn.md: bring your own TURN (coturn config, hosted providers), plus a template Worker that mints short-lived logins so no long-lived secret ships in a game build.
  • Godot reaches TURN over UDP only.