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

Provide emit method for Pool module #14

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

Conversation

martynsmith
Copy link

This provides the same emit method as implemented in the Socket class to the Pool class.

@martynsmith
Copy link
Author

Yes, except you can't do it easily from the Pool.

My problem is that I have something generating events that isn't in the context of any one connection. An external event (i.e. some other AnyEvent code I've written) is generating the events, so I don't have a Socket handle when I want to emit them. Instead I'm using $pocketio->pool

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