Sendjng of ping #1021
-
Hey i have a question.. does this library automatically send pings.. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Are you asking about the client functionality in this library or the server? Your screenshot shows the browser sending to the server, in case it isn't clear. The "2" packets are ping packets, sent at regular intervals and automatically. This is an old version of the Socket.IO protocol, in current versions the server sends pings to clients. The "42" packet is an application specific packet. |
Beta Was this translation helpful? Give feedback.
-
Yes i am aware the browser sends 2 to the server.. i am trying to reproduce this in vscode... so since you said this is an old version of socket.io.. how will i make use of it.. in case you are a bit confused I asked a question on connecting some time back.. so is there any difference in connecting using the new version or the old version |
Beta Was this translation helpful? Give feedback.
Are you asking about the client functionality in this library or the server?
Your screenshot shows the browser sending to the server, in case it isn't clear.
The "2" packets are ping packets, sent at regular intervals and automatically. This is an old version of the Socket.IO protocol, in current versions the server sends pings to clients.
The "42" packet is an application specific packet.