From 148b6fe476e35e9e8db448d6dc73d57a3b23e800 Mon Sep 17 00:00:00 2001 From: Florent Gallaire Date: Mon, 11 Nov 2013 02:16:50 +0100 Subject: DRY url.replace(). Automatically disable WebSocket when the URL begins with 'http'. Update the README with the new 'http' url syntax. Update the clock example with the new 'http' url syntax. --- examples/clock/src/toppage_handler.erl | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'examples/clock/src') diff --git a/examples/clock/src/toppage_handler.erl b/examples/clock/src/toppage_handler.erl index 71512d3..be52be2 100644 --- a/examples/clock/src/toppage_handler.erl +++ b/examples/clock/src/toppage_handler.erl @@ -24,6 +24,10 @@ handle(Req, State) -> Current time (best source): unknown unknown

+

+ Current time (best source non-websocket): unknown + unknown +

Current time (websocket only): unknown unknown @@ -44,10 +48,10 @@ handle(Req, State) ->