Skip to content

Provide emit method for Pool module#14

Open
martynsmith wants to merge 3 commits intovti:masterfrom
martynsmith:master
Open

Provide emit method for Pool module#14
martynsmith wants to merge 3 commits intovti:masterfrom
martynsmith:master

Conversation

@martynsmith
Copy link
Copy Markdown

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

@martynsmith
Copy link
Copy Markdown
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