From: Matteo Nastasi (mop) Date: Mon, 5 Aug 2013 12:50:12 +0000 (+0200) Subject: updated xynt_test01 with websocket transport X-Git-Tag: v4.9.0~6 X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=f62e576f2a7f3ae00e10dbfc61bed326971f4255;hp=2595e2c0a3c24088d1b104c4b1c8e39934d5f061;p=brisk.git updated xynt_test01 with websocket transport --- 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") {