[Bug 13104] 1) ping(msg); //allow client to send server ping as per websocket spec 2) onpong(); //allow client to receive response of ping

2011-09-12 Thread bugzilla
http://www.w3.org/Bugs/Public/show_bug.cgi?id=13104

Iñaki Baz Castillo i...@aliax.net changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 CC||i...@aliax.net
 Resolution|NEEDSINFO   |

--- Comment #3 from Iñaki Baz Castillo i...@aliax.net 2011-09-12 19:00:00 UTC 
---
(In reply to comment #2)
 What's the use case?

In case the network connection goes down (for example the ADSL dies), the
WebSocket client could not realize of it until it attempts to send a new WS
frame (it happens sometimes because there is not a TCP disconnection).

By sending periodical WS Ping frames from client to server, the client could
realize of the network issue in a reasonable time.

As a suggestion, the WS API could include an interval for sending Ping frames
to the server:

var myWebSocket = new WebSocket(ws://some-domain.com);
myWebSocket.set_monitor_interval(120);

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.


[Bug 13104] 1) ping(msg); //allow client to send server ping as per websocket spec 2) onpong(); //allow client to receive response of ping

2011-07-08 Thread bugzilla
http://www.w3.org/Bugs/Public/show_bug.cgi?id=13104

Ian 'Hixie' Hickson i...@hixie.ch changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||i...@hixie.ch
 Resolution||NEEDSINFO

--- Comment #2 from Ian 'Hixie' Hickson i...@hixie.ch 2011-07-08 20:04:37 UTC 
---
What's the use case?

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.