Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Socket manager variable returns unexpected value. #750

Open
Fel-lek opened this issue Jan 9, 2024 · 2 comments
Open

Socket manager variable returns unexpected value. #750

Fel-lek opened this issue Jan 9, 2024 · 2 comments

Comments

@Fel-lek
Copy link

Fel-lek commented Jan 9, 2024

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
Copy link

pheeya commented Jan 19, 2024

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

@Fel-lek
Copy link
Author

Fel-lek commented Jan 31, 2024

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().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants