gamerpc 8.0.6 → 8.0.8
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 +12 -0
- package/package.json +1 -1
- package/src/index.js +671 -38
- package/test/game/kow.js +1 -1
- package/src/authConn.js +0 -595
- package/src/gameConn.js +0 -705
package/README.md
CHANGED
|
@@ -57,3 +57,15 @@ import toolkit from require('gamerpc')
|
|
|
57
57
|
```
|
|
58
58
|
|
|
59
59
|
范例参见 ./test/test.html (请在必要时手工修改页面包含文件的链接地址)
|
|
60
|
+
|
|
61
|
+
注意:如下写法无法在页面嵌套中引用到内部对象,但在NPM依赖包引入模式下没有影响
|
|
62
|
+
```bash
|
|
63
|
+
module.exports = Remote;
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
页面嵌入建议改成如下模式
|
|
67
|
+
```bash
|
|
68
|
+
const toolkit = exports;
|
|
69
|
+
toolkit.conn = Remote;
|
|
70
|
+
global.toolkit = toolkit;
|
|
71
|
+
```
|