yakuza0 2.21.6 → 2.21.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/utils/ws.o28.js +30 -3
package/package.json
CHANGED
package/utils/ws.o28.js
CHANGED
|
@@ -81,11 +81,27 @@ var Bac = function () {
|
|
|
81
81
|
}, {
|
|
82
82
|
key: 'sequence',
|
|
83
83
|
value: function sequence() {
|
|
84
|
-
var path = '/' + this.opts.wsPath + '/pxdl';
|
|
85
|
-
|
|
84
|
+
var path = '/' + this.opts.wsPath + '/api-ws/pxdl';
|
|
85
|
+
// const a = io('/', {
|
|
86
|
+
// path,
|
|
87
|
+
// transports: this.opts.transports,
|
|
88
|
+
// });
|
|
89
|
+
|
|
90
|
+
// const c = _.cloneDeep(a);
|
|
91
|
+
//
|
|
92
|
+
// c.emit = (e, ...args) => {
|
|
93
|
+
// e = "/api-ws/"+ e;
|
|
94
|
+
// a.emit(e, ...args)
|
|
95
|
+
// }
|
|
96
|
+
|
|
97
|
+
var manager = new _socket2.default.Manager(path, {
|
|
86
98
|
path: path,
|
|
87
99
|
transports: this.opts.transports
|
|
88
100
|
});
|
|
101
|
+
|
|
102
|
+
var socket = manager.socket('/api-ws/pxdl');
|
|
103
|
+
|
|
104
|
+
this.ws.sock = socket;
|
|
89
105
|
}
|
|
90
106
|
}, {
|
|
91
107
|
key: 'init',
|
|
@@ -137,8 +153,19 @@ exports.default = function (uri, opts) {
|
|
|
137
153
|
|
|
138
154
|
var ws = exports.ws = function ws(url, opt) {
|
|
139
155
|
var path = '/proxy-ws-o28/api-ws' + url;
|
|
140
|
-
|
|
156
|
+
var manager = new _socket2.default.Manager(path, (0, _extends3.default)({
|
|
141
157
|
path: path,
|
|
142
158
|
transports: ['websocket']
|
|
143
159
|
}, opt));
|
|
160
|
+
|
|
161
|
+
// const c = _.cloneDeep(a);
|
|
162
|
+
//
|
|
163
|
+
// c.emit = (e, ...args) => {
|
|
164
|
+
// e = "/api-ws/"+ e;
|
|
165
|
+
// a.emit(e, ...args)
|
|
166
|
+
// }
|
|
167
|
+
|
|
168
|
+
var socket = manager.socket('/api-ws' + url);
|
|
169
|
+
|
|
170
|
+
return socket;
|
|
144
171
|
};
|