You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In test-suite.js there's a test that checks if the server closes the session and sends a 1 close packet when the client makes duplicate poll requests at the same time here, I have two questions about that:
Why is it a problem that the client can make duplicate poll requests?
What is the best way for a server to detect that the client made a duplicate poll request i was thinking of doing something with a timestamp we can attach a timestamp to the session and check it when the client makes a poll request.
I'm making my own engine.io implementation and I never done something like this before so i apologize for my ignorance, thanks :).
The text was updated successfully, but these errors were encountered:
Why is it a problem that the client can make duplicate poll requests?
That's a great question. I think that this is to ensure the ordering of the packets. Also, what would be the benefit of multiple long-polling requests?
What is the best way for a server to detect that the client made a duplicate poll request
In
test-suite.js
there's a test that checks if the server closes the session and sends a1
close packet when the client makes duplicate poll requests at the same time here, I have two questions about that:I'm making my own engine.io implementation and I never done something like this before so i apologize for my ignorance, thanks :).
The text was updated successfully, but these errors were encountered: