larksr_websdk 3.2.7 → 3.2.11
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 +3 -0
- package/dist/larksr-web-sdk.min.js +3 -3
- package/dist/types/api.d.ts +26 -0
- package/dist/types/appli_params.d.ts +4 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/larksr.d.ts +77 -8
- package/dist/types/screen_state.d.ts +5 -1
- package/package.json +1 -1
- package/types/api.d.ts +26 -0
- package/types/appli_params.d.ts +4 -0
- package/types/index.d.ts +2 -1
- package/types/lark/application.d.ts +18 -11
- package/types/lark/ice_candiadate_parser.d.ts +24 -0
- package/types/lark/peer_connection.d.ts +21 -18
- package/types/larksr.d.ts +77 -8
- package/types/operation/operation.d.ts +8 -1
- package/types/protobuf/cloudlark.d.ts +6466 -5944
- package/types/screen_state.d.ts +5 -1
- package/types/utils/log.d.ts +1 -1
- package/types/utils/unit.d.ts +1 -0
package/README.md
CHANGED
|
@@ -52,6 +52,8 @@ var client = new LarkSR({
|
|
|
52
52
|
rootElement: document.getElementById('container'),
|
|
53
53
|
// 服务器地址,实际使用中填写您的服务器地址
|
|
54
54
|
// 如:http://222.128.6.137:8181/
|
|
55
|
+
// 当使用平行云托管服务时服务器地址自动分配,可留空。
|
|
56
|
+
// 使用平行云托管服务时使用 CreateLarkSRClientFromePXYHost 或 larksr.connectWithPxyHost 进入应用
|
|
55
57
|
serverAddress: "Lark 服务器前台地址",
|
|
56
58
|
// SDK ID 也可在 initSDKAuthCode 设置
|
|
57
59
|
// authCode: '您的 SDK ID',
|
|
@@ -63,6 +65,7 @@ var client = new LarkSR({
|
|
|
63
65
|
client.initSDKAuthCode('您的 SDK ID')
|
|
64
66
|
.then(() => {
|
|
65
67
|
// start connect;
|
|
68
|
+
// 使用平行云托管服务时,用 connectWithPxyHost 进入应用并自动分配服务器.
|
|
66
69
|
client.connect({
|
|
67
70
|
// 要使用的云端资源的应用 ID,从后云雀后台接口获取
|
|
68
71
|
// 参考查询应用一栏文档
|