cgserver 9.0.5 → 9.0.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/README.md CHANGED
@@ -1,3 +1,7 @@
1
+ 9.0.7(重要修复)
2
+ 1、修复createFilter的bug
3
+ 9.0.6(修复bug)
4
+ 1、IRpcClientWebSocket toRetMsg的bug修正
1
5
  9.0.5(不重要)
2
6
  1、添加一个rpc提示
3
7
  9.0.4
@@ -32,7 +32,7 @@ class IRpcClientWebSocket extends IClientWebSocket_1.IClientWebSocket {
32
32
  ret_msg.from_group = this._group;
33
33
  ret_msg.from_id = this._id;
34
34
  ret_msg.to_group = req_msg.from_group;
35
- ret_msg.to_id = req_msg.to_id;
35
+ ret_msg.to_id = req_msg.from_id;
36
36
  return ret_msg;
37
37
  }
38
38
  async callRemote(msg) {
@@ -21,7 +21,7 @@ class ProtoFactory {
21
21
  return filter;
22
22
  }
23
23
  let proto_class = this._type_filter_classes[type];
24
- if (!proto_class) {
24
+ if (proto_class) {
25
25
  filter = new proto_class();
26
26
  }
27
27
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cgserver",
3
- "version": "9.0.5",
3
+ "version": "9.0.7",
4
4
  "author": "trojan",
5
5
  "type": "commonjs",
6
6
  "description": "free for all.Websocket or Http",