Skip to content

refactor: inline broadcast_event in broker server#401

Draft
srunde3 wants to merge 1 commit intocanonical:mainfrom
srunde3:remove-event-decorator-in-brokerserver
Draft

refactor: inline broadcast_event in broker server#401
srunde3 wants to merge 1 commit intocanonical:mainfrom
srunde3:remove-event-decorator-in-brokerserver

Conversation

@srunde3
Copy link
Contributor

@srunde3 srunde3 commented Jan 6, 2026

Context

The @event decorator changed the function signature of the methods it decorated, and this obfuscated the arguments that the event should accept. IMO it is an unnecessary abstraction.

This is a small step towards better understanding the event system in the client. In the future I'd like to type the events (e.g., enum) in the future so that we can better reason about event senders and receivers.

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

Successfully merging this pull request may close these issues.

1 participant