Skip to content

Commit 0810f0b

Browse files
a few improvements to examples
1 parent 963c8c5 commit 0810f0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/templates/latency.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ <h2 id="transport">(connecting)</h2>
2323
}
2424
send();
2525
});
26-
socket.on('pong', function() {
26+
socket.on('pong_from_server', function() {
2727
var latency = new Date - last;
2828
$('#latency').text(latency + 'ms');
2929
if (time)
@@ -39,7 +39,7 @@ <h2 id="transport">(connecting)</h2>
3939
var last;
4040
function send() {
4141
last = new Date;
42-
socket.emit('ping');
42+
socket.emit('ping_from_client');
4343
$('#transport').text(socket.io.engine.transport.name);
4444
}
4545

0 commit comments

Comments
 (0)