feat(NetworkManager): expose methods for clientId to transportId mappings
This feature gives access to 2 new get methods in NetworkManager that allow the user to convert between clientId and transportId and vice versa.
Our use case for this feature was using Facepunch.Steamworks and our own twist on the community transport that pairs with it. We need to be able to get the SteamId of any connected client from their clientId for various reasons, one being server-side saving of client specific data that is then identified via SteamId.
This feature resolves #2359.
Changelog
- Added: A getter function in NetworkManager that can convert from
clientIdtotransportIdand vice versa.
Testing and Documentation
- No tests have been added.
Yeah, I hit this too, this is a must. Considering even UnityTransport uses this in its Send method, it is obvious these needs to be public as other transports (and users) definitely might use this.
Yeah, I hit this too, this is a must. Considering even UnityTransport uses this in its Send method, it is obvious these needs to be public as other transports (and users) definitely might use this.
Yeah I'm currently running on a forked version of this repo, with this change implemented. It's slightly out of sync with main but feel free to use or just fork your own copy if you need this feature soon 👍🏼