thunderpush icon indicating copy to clipboard operation
thunderpush copied to clipboard

Disconnect users - when used transport: xhr-streaming

Open mrStanislav opened this issue 9 years ago • 12 comments

When using transport : xhr-streaming - if you close the browser window and to make a request for the number of users (GET:/api/1.0.0/[API key]/channels/test) I keep seeing this user. The same thing happens when a user connects. In other words - there is no update. When using transpoprt websocket everything is ok. How can I fix it? Thank you very much!

mrStanislav avatar Sep 17 '14 04:09 mrStanislav

So the server doesn't show the user disconnected? What version of thunderpush are you using?

jrschumacher avatar Sep 18 '14 04:09 jrschumacher

I am using version 0.9.7. The server shows disconnected users, but with big delay. let me remind you that this only happens when using transport xhr-streaming. (when I use web sockets everything is ok)

mrStanislav avatar Sep 18 '14 05:09 mrStanislav

Thanks, I'll do some research this weekend.

jrschumacher avatar Sep 18 '14 20:09 jrschumacher

Thank you I will wait for any result

mrStanislav avatar Sep 19 '14 08:09 mrStanislav

We're using sockjs-tornado for connection handling. The version we use is a bit outdated version (3.2.2) of the library at the moment. So we should probably first upgrade to 4.0.2 and check if the problem persists.

kjagiello avatar Sep 22 '14 09:09 kjagiello

I've updated the tornado. At the moment I have 4.0.2 version. But the situation is even worse. Next: GET:/api/1.0.0/[API key]/channels/test - This query shows me all disconnected users. Additionally, do GET: /api/1.0.0/ [API key] / users / and I see a number of users (should be 0) GET:/api/1.0.0/[API key]/users/user_id shows me - true but although this user is offline The old version of the tornado was better.

mrStanislav avatar Sep 22 '14 10:09 mrStanislav

The new version may contain some backward-incompatible changes, so upgrading may require us to rewrite some parts of our own code as well. I'll take a closer look at it.

kjagiello avatar Sep 22 '14 11:09 kjagiello

We would like to work with this library (thunderpush) if you are able to provide any support I will be grateful

mrStanislav avatar Sep 22 '14 11:09 mrStanislav

Good morning! After tested: All of the above problems occur when using a proxy server

mrStanislav avatar Sep 23 '14 04:09 mrStanislav

additionally. If I use sockjs in the node (sockjs_chat-master) then the user is disconnected is displayed after about ~3 seconds

mrStanislav avatar Sep 23 '14 05:09 mrStanislav

Did you have any luck in finding the reason for those delays? @mrStanislav

kjagiello avatar Dec 03 '14 00:12 kjagiello

Unfortunately no ... there is another issue, the library does not work on Samsung Smart TVs... eg soket.io (nodejs) work

mrStanislav avatar Mar 13 '15 20:03 mrStanislav