pusher / pusher-js

Pusher Javascript library
http://pusher.com
MIT License
2.11k stars 374 forks source link

Presence channel is stuck on subscriptionPending when using xhr_streaming #706

Closed bartw closed 1 year ago

bartw commented 1 year ago

Do you want to request a feature or report a bug? Report a bug

What is the current behavior? When we use xhr_streaming and try to connect to a presence channel, subscriptionPending is stuck on true. It doesn't succeed or error.

When we use ws and try to connect to the same presence channel, everything works as expected.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar.

What is the expected behavior? Connecting to a presence channel using xhr_streaming works like it does for ws.

Which versions of Pusher, and which browsers / OS are affected by this issue? Did this work in previous versions of Pusher? If so, which?

stueynet commented 1 year ago

Do you want to request a feature or report a bug? Report a bug

What is the current behavior? When we use xhr_streaming and try to connect to a presence channel, subscriptionPending is stuck on true. It doesn't succeed or error.

When we use ws and try to connect to the same presence channel, everything works as expected.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar.

What is the expected behavior? Connecting to a presence channel using xhr_streaming works like it does for ws.

Which versions of Pusher, and which browsers / OS are affected by this issue? Did this work in previous versions of Pusher? If so, which?

Hey just curious, when you are in this state are triggered events and channel occupancy working correctly? Or is the subscription also borked?

bartw commented 1 year ago

Triggered events are working correctly. I didn't test occupancy.

benw-pusher commented 1 year ago

Hi @bartw We recently pushed a server side update to try and improve behaviour in this area - do you still experience this issue?

benw-pusher commented 1 year ago

We haven't had any update since my previous update so I will close this out. Feel free to get in touch direct at https://support.pusher.com/hc/en-us/requests/new if you need further support.