Skip to content

Ping Pong mechanism #4056

Answered by darrachequesne
chuwt asked this question in Q&A
Aug 14, 2021 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

Hi! The documentation could indeed be more detailed on this point.

Here's what happens:

  • the server sends a ping packet (a "2") on the ongoing GET request
  • the client sends a pong packet back (a "3") with a POST request
  • the client then opens another long-running GET request

You can take a look at the schema here: https://socket.io/docs/v4/how-it-works/#HTTP-long-polling

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@chuwt
Comment options

@darrachequesne
Comment options

@chuwt
Comment options

@awesomelike
Comment options

Answer selected by darrachequesne
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants