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