Forráskód Böngészése

try to fix ws transport error

Nikolay Suslov 6 éve
szülő
commit
38ef9d17c3
1 módosított fájl, 4 hozzáadás és 1 törlés
  1. 4 1
      public/vwf.js

+ 4 - 1
public/vwf.js

@@ -829,6 +829,8 @@
 
             try {
 
+                let pathObj = JSON.stringify(path);
+
                 var options = {
 
                     // The socket is relative to the application path.
@@ -840,7 +842,7 @@
                         pathname: window.location.pathname.slice( 1,
                             window.location.pathname.lastIndexOf("/") ),
                         appRoot: "./public",
-                        path: JSON.stringify(path)
+                        path: pathObj
                       },
                     // query: 'pathname=' + window.location.pathname.slice( 1,
                     //     window.location.pathname.lastIndexOf("/") ),
@@ -854,6 +856,7 @@
 
                     //reconnect: false,
                     reconnection: false,
+                    upgrade: false,
                     transports: ['websocket']
 
                 };