From f62e576f2a7f3ae00e10dbfc61bed326971f4255 Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Mon, 5 Aug 2013 14:50:12 +0200 Subject: [PATCH] updated xynt_test01 with websocket transport --- web/xynt_test01.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/web/xynt_test01.php b/web/xynt_test01.php index f9efb7b..b60ca9c 100644 --- a/web/xynt_test01.php +++ b/web/xynt_test01.php @@ -8,7 +8,7 @@ $desc = array( "Semplice: da 1 a 9 ogni secondo, poi ricomincia (status sempre v "Reload limiter: da 1 a 8 ogni secondo e chiude, 9 setta e chiude subito,
il client aspetta 3 secondi, e poi da 10 a N ogni secondo, (status sempre verde)."); -$transs = array( "iframe", "xhr", "htmlfile" ); +$transs = array( "iframe", "websocket", "xhr", "htmlfile" ); if (!isset($f_trans)) $f_trans = $transs[0]; @@ -46,7 +46,10 @@ if ($isstream == "true") { require_once("Obj/transports.phh"); - if (isset($transp) && $transp == "xhr") { + if (isset($transp) && $transp == "websocket") { + $transp = new Transport_websocket(); + } + else if (isset($transp) && $transp == "xhr") { $transp = new Transport_xhr(); } else if (isset($transp) && $transp == "htmlfile") { -- 2.17.1