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

Jefvel/rpc visibility #91

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

jefvel
Copy link

@jefvel jefvel commented Jan 21, 2025

can be used like this:

@:rpc(all) @:visible(group)
public function groupMethod() { trace('hello'); }

It will only be forwarded to clients with visibility set to true. for #90

can be used like this:
@:rpc(all) @:visible(group)
public function groupMethod() { trace('hello'); }

It will only be forwarded to clients with visibility set to true
@ncannasse
Copy link
Member

In implementation I would allow several @:visible and generate a visibility mask testing for at least one of the groups, and use 0 as a default value instead of null.

@jefvel
Copy link
Author

jefvel commented Jan 22, 2025

Made it possible to use multiple @:visible now, and default the mask to 0 👍

@jefvel
Copy link
Author

jefvel commented Jan 30, 2025

I updated the readme with info about visibility ( I hope I got it mostly correct this time :) )

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.

2 participants