mirror of
https://github.com/socketio/socket.io.git
synced 2026-01-10 23:48:02 -05:00
examples: moar ie fixes
This commit is contained in:
@@ -38,12 +38,12 @@ socket.onopen = function(){
|
||||
send();
|
||||
};
|
||||
socket.onclose = function(){
|
||||
smoothie.stop();
|
||||
if (smoothie) smoothie.stop();
|
||||
$('transport').innerHTML = '(disconnected)';
|
||||
};
|
||||
socket.onmessage = function(){
|
||||
var latency = new Date - last;
|
||||
$('latency').innerHTML = latency + 'ms';
|
||||
time.append(+new Date, latency);
|
||||
if (time) time.append(+new Date, latency);
|
||||
setTimeout(send, 100);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user