cgserver 6.2.9 → 6.2.10

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.
@@ -157,12 +157,12 @@ class IWebSocket {
157
157
  try {
158
158
  if (Core_1.core.isAsyncFunc(otherfunc)) {
159
159
  //默认支持其他所有处理消息
160
- await otherfunc.call(jsonData).catch((reason) => {
160
+ await otherfunc.call(this, jsonData).catch((reason) => {
161
161
  Log_1.GLog.error(reason);
162
162
  });
163
163
  }
164
164
  else {
165
- otherfunc.call(jsonData);
165
+ otherfunc.call(this, jsonData);
166
166
  }
167
167
  }
168
168
  catch (e) {
@@ -177,12 +177,12 @@ class IWebSocket {
177
177
  try {
178
178
  if (Core_1.core.isAsyncFunc(func)) {
179
179
  //默认支持其他所有处理消息
180
- await func.call(jsonData).catch((reason) => {
180
+ await func.call(this, jsonData).catch((reason) => {
181
181
  Log_1.GLog.error(reason);
182
182
  });
183
183
  }
184
184
  else {
185
- func.call(jsonData);
185
+ func.call(this, jsonData);
186
186
  }
187
187
  }
188
188
  catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cgserver",
3
- "version": "6.2.9",
3
+ "version": "6.2.10",
4
4
  "author": "trojan",
5
5
  "type": "commonjs",
6
6
  "description": "free for all.Websocket or Http",