@@ -30,7 +30,7 @@ let wsMsg = "";
3030let logOff = false ;
3131let pageId = "" ;
3232let currentPath = "/" ;
33- const version = "3.0.0.a5 " ;
33+ const version = "3.0.0.a6 " ;
3434let xmlhttpupload ;
3535let prgfiletext ;
3636let prgfile ;
@@ -239,11 +239,11 @@ function getPCTime() {
239239 padNumber ( d . getMonth ( ) + 1 , 2 ) +
240240 "-" +
241241 padNumber ( d . getDate ( ) , 2 ) +
242- "- " +
242+ "T " +
243243 padNumber ( d . getHours ( ) , 2 ) +
244- "- " +
244+ ": " +
245245 padNumber ( d . getMinutes ( ) , 2 ) +
246- "- " +
246+ ": " +
247247 padNumber ( d . getSeconds ( ) , 2 )
248248 ) ;
249249}
@@ -357,18 +357,18 @@ function processFWJson(text) {
357357 }
358358 }
359359 if ( json . Hostname ) document . title = json . Hostname ;
360- startSocket ( json . WebSocketIP , json . WebSocketPort , json . WebCommunication , json . WebSocketSubProtocol ) ;
360+ startSocket ( json . WebSocketIP , json . WebSocketPort , json . WebCommunication ) ;
361361 SendFileCommand ( "list" , "all" ) ;
362362}
363363
364- function startSocket ( ip , port , sync , protocol ) {
364+ function startSocket ( ip , port , sync ) {
365365 if ( websocketStarted ) {
366366 wsSource . close ( ) ;
367367 }
368368
369369 wsSource = new WebSocket (
370370 "ws://" + ip + ":" + port + ( sync == "Asynchronous" ? "/ws" : "" ) ,
371- [ protocol ]
371+ [ "webui-v3" ]
372372 ) ;
373373 wsSource . binaryType = "arraybuffer" ;
374374 wsSource . onopen = function ( e ) {
@@ -380,7 +380,7 @@ function startSocket(ip, port, sync, protocol) {
380380 //if it is not a log off
381381 if ( ! logOff )
382382 setTimeout ( ( ) => {
383- startSocket ( ip , port , sync , protocol ) ;
383+ startSocket ( ip , port , sync ) ;
384384 } , 3000 ) ;
385385 } ;
386386 wsSource . onerror = function ( e ) {
0 commit comments