X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fxynt_test01.php;h=b60ca9c14e5e90bb0feba9783c9707e6c4b99ec1;hb=f62e576f2a7f3ae00e10dbfc61bed326971f4255;hp=f9efb7b35376421b61a93d3b332dda9e99ad0ae6;hpb=2595e2c0a3c24088d1b104c4b1c8e39934d5f061;p=brisk.git 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") {