Facepunch/Facepunch.Steamworks

Socket manager variable returns unexpected value.

Fel-lek opened this issue · 2 comments

I'm not sure if this is a bug or an issue in my code however when using relay sockets, on a connection "ConnectionInfo.Identity.IsSteamId" returns false and therefore "ConnectionInfo.Identity.SteamId" also returns 0. I get hits for "OnConnecting", "OnConnected" and "OnDisconnected"

image

Could this be related to the fact it's relay?

pheeya commented

Did you initialize the relay network access using SteamNetworkingUtils.InitRelayNetworkAccess(); somewhere in your code before creating the relay socket? I believe it has to be done for the client and the server, so somewhere in your initialization code right after you initialize your steam client

Did you initialize the relay network access using SteamNetworkingUtils.InitRelayNetworkAccess(); somewhere in your code before creating the relay socket? I believe it has to be done for the client and the server, so somewhere in your initialization code right after you initialize your steam client

I did after SteamClient.Init().