From e8535ec4b8316effd3da3ce9622ae931e251531a Mon Sep 17 00:00:00 2001 From: Dave Peticolas Date: Sun, 9 Jun 2013 14:00:38 -0700 Subject: Individual bullet connections in the example can be enabled/disabled. This illustrates how to close bullet connections. --- examples/clock/src/toppage_handler.erl | 54 ++++++++++++++++++++++------------ 1 file changed, 35 insertions(+), 19 deletions(-) (limited to 'examples') diff --git a/examples/clock/src/toppage_handler.erl b/examples/clock/src/toppage_handler.erl index 2b878be..844e9ba 100644 --- a/examples/clock/src/toppage_handler.erl +++ b/examples/clock/src/toppage_handler.erl @@ -20,13 +20,17 @@ handle(Req, State) -> -

Current time (best source): unknown +

+ Current time (best source): unknown unknown

-

Current time (websocket only): unknown +

+ Current time (websocket only): unknown unknown

-

Current time (eventsource only): unknown +

+ Current time (eventsource only): unknown unknown

-

Current time (polling only): unknown +

+ Current time (polling only): unknown unknown