Closed johnnewman closed 1 year ago
👋 is there anything you need from me in order to merge this PR? Thank you!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you'd like this issue to stay open please leave a comment indicating how this issue is affecting you. Thank you.
Description of the pull request
Hello! This pull request adds Combine Publisher support for Pusher events. This is done via an extension on the Pusher class that allows you to subscribe to channel events and global events. Below are some code examples of how this could be used.
Channel events:
All global events:
Specific global events:
Here's an example of a more advanced use case:
Why is the change necessary?
This provides an alternate approach to receiving events and is a convenient way of integrating Pusher into Combine streams.