jsr356-experts@websocket-spec.java.net

[jsr356-experts] Re: Pings and Pongs

From: Greg Wilkins <gregw_at_intalio.com>
Date: Fri, 13 Jul 2012 11:49:12 +1000

On 13 July 2012 11:10, Joe Walnes <joe_at_walnes.com> wrote:
>
> * Whatever the result of the streaming API discussion, we should offer
> equivalent methods for the ping/pong application date (e.g. chunking,
> streaming, whatever).

Pings and Pongs are control frames, so their payload size is limited
to 126 bytes. I think a streaming API for this would be overkill
and prone to overflows.


> * Most (but not all) applications don't care about implementing their own
> ping/pong rules. It should be easy for applications to use predefined
> ping/pong strategies (e.g. reply to pings from client, send heartbeat pings
> from server with timeout, etc), without having to duplicate code.

+1






-- 
Greg Wilkins <gregw_at_intalio.com>
www.webtide.com
Developer advice, services and support
from the Jetty & CometD experts.