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

HTTP SUBSCRIBE (stream) instead of polling? #1

Open
gianpaj opened this issue Apr 18, 2018 · 2 comments
Open

HTTP SUBSCRIBE (stream) instead of polling? #1

gianpaj opened this issue Apr 18, 2018 · 2 comments

Comments

@gianpaj
Copy link

gianpaj commented Apr 18, 2018

I'm looking to send push notifications as soon as a message has been sent and the user's client is offline.
So I believe polling every 1/3 seconds would be a bit too much.

Is it be possible to listen for new messages in each room using this API?
https://docs.pusher.com/chatkit/reference/subscription-events#new-message

@gildebrand
Copy link
Owner

That's a good idea! I'd like to see that in my application as well, so will probably try to implement this. I won't have time to make a implementation this week, probably in the next week. Any PR's are more than welcome 😅

@gianpaj
Copy link
Author

gianpaj commented Apr 18, 2018

Thanks for the quick reply. I'm going to try another Chat messaging provider (Ably) before giving Pusher another try.
Writing my own push server for chat messages is silly, especially if Pusher has something called "chatkit" and has "push" in their name.

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