@xmov/avatar 2.4.0-alpha.2 → 2.4.0-alpha.3
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/dist/control/ttsa.d.ts +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +1 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/index.module.js +1 -1
- package/dist/index.module.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/modules/ResourceManager.d.ts +1 -0
- package/package.json +1 -1
- package/src/control/ttsa.ts +2 -0
- package/src/index.ts +1 -0
- package/src/modules/ResourceManager.ts +1 -0
package/package.json
CHANGED
package/src/control/ttsa.ts
CHANGED
|
@@ -39,6 +39,7 @@ const pointNameObj = {
|
|
|
39
39
|
interface ITtsaOptions {
|
|
40
40
|
sdkInstance: XmovAvatar;
|
|
41
41
|
url: string;
|
|
42
|
+
path?: string;
|
|
42
43
|
room: string;
|
|
43
44
|
session_id: string;
|
|
44
45
|
token: string;
|
|
@@ -174,6 +175,7 @@ export default class Ttsa {
|
|
|
174
175
|
query: {
|
|
175
176
|
token: this.token,
|
|
176
177
|
},
|
|
178
|
+
path: options.path || "",
|
|
177
179
|
transports: ['websocket'],
|
|
178
180
|
// 自动重连不限制次数:在 reconnect_timeout(服务端断开旧房间的窗口)内持续尝试,
|
|
179
181
|
// 失效房间必然重连失败;超过窗口由 disconnect 处理器中的停止定时器断开,
|
package/src/index.ts
CHANGED
|
@@ -1135,6 +1135,7 @@ export default class XmovAvatar {
|
|
|
1135
1135
|
return new Ttsa({
|
|
1136
1136
|
sdkInstance: this,
|
|
1137
1137
|
url: sessionInfo.socket_io_url,
|
|
1138
|
+
path: sessionInfo?.socket_io_path || "",
|
|
1138
1139
|
room: sessionInfo.room,
|
|
1139
1140
|
session_id: sessionInfo.session_id,
|
|
1140
1141
|
token: sessionInfo.token,
|