We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 963c8c5 commit 0810f0bCopy full SHA for 0810f0b
examples/templates/latency.html
@@ -23,7 +23,7 @@ <h2 id="transport">(connecting)</h2>
23
}
24
send();
25
});
26
- socket.on('pong', function() {
+ socket.on('pong_from_server', function() {
27
var latency = new Date - last;
28
$('#latency').text(latency + 'ms');
29
if (time)
@@ -39,7 +39,7 @@ <h2 id="transport">(connecting)</h2>
39
var last;
40
function send() {
41
last = new Date;
42
- socket.emit('ping');
+ socket.emit('ping_from_client');
43
$('#transport').text(socket.io.engine.transport.name);
44
45
0 commit comments