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

C# Server running wrong reducer on ClientConnected #2131

Open
rekhoff opened this issue Jan 15, 2025 · 1 comment
Open

C# Server running wrong reducer on ClientConnected #2131

rekhoff opened this issue Jan 15, 2025 · 1 comment

Comments

@rekhoff
Copy link

rekhoff commented Jan 15, 2025

When adding the ReducerKind.ClientConnected attribute to a Reducer, on the client connection, the wrong Reducer is being called:
Example code:
CodeExample

Result:
Result

@cloutiertyler cloutiertyler transferred this issue from clockworklabs/spacetime-docs Jan 15, 2025
@rekhoff
Copy link
Author

rekhoff commented Jan 16, 2025

Screenshots and behavior where provided by Steve. In my testing, I don't get any reducer being called when a Unity client connects to a C# Server.
I have validated that in Unity, I can manually call conn.Reducers.Connect(); during connection setup where:

  • conn is the DbConnection.
  • Connect is the name of my reducer with the [Reducer(ReducerKind.ClientConnected)] attribute.
    Without manually calling the Reducer, the Connect reducer is never called.

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

1 participant