users@websocket-spec.java.net

[jsr356-users] [jsr356-experts] Re: Pings and Pongs

From: Joe Walnes <joe_at_walnes.com>
Date: Sun, 5 Aug 2012 05:59:06 -0500

On Sun, Aug 5, 2012 at 4:05 AM, Mark Thomas <mark_at_homeinbox.net> wrote:

> On 13/07/2012 03:10, Joe Walnes wrote:
>
> * 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. Maybe this is a vendor specific feature - or maybe it
> > could be implemented in user-space with a Filter equivalent for the
> > WebSockets.
>
> I'd expect the implementation to provide a default implementation that
> applications could override if they wanted to.
>

Which begs the question, what should the default implementation be? It
sounds like something we could leave to the vendor specific implementations.

-Joe