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

Force seamless to register event as global #65

Open
binyamin555 opened this issue Aug 31, 2024 · 1 comment
Open

Force seamless to register event as global #65

binyamin555 opened this issue Aug 31, 2024 · 1 comment
Milestone

Comments

@binyamin555
Copy link
Member

I'm making a chat application in seamless and I have a get_members method in my ChatRoom class.

Now, I want the client to render the result of get_members when they press a button, but I also don't want the method
to be scoped to each client (because it uses the same ChatRoom instance for all the members).

Is it possible to force a callable to be a global event? Maybe using some force_global_event decorator on my method?

Thank you in advance :D

@neriyaco
Copy link
Member

No, this is not possible at the moment, it is also a dangerous functionality because it can lead to users invoking other user's methods.

We are planning to support this type of functionality; it will be named something like unsafe_global_event

@neriyaco neriyaco added this to the 0.10.0 milestone Aug 31, 2024
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