@sanseng/livekit-ws-sdk 0.1.11 → 0.1.13
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/index.cjs.js +8316 -9
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.esm.js +8301 -9
- package/dist/index.esm.js.map +1 -0
- package/dist/index.full.umd.js +35491 -46
- package/dist/index.umd.js +8420 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -840,6 +840,7 @@ declare class SDKContext {
|
|
|
840
840
|
private _token;
|
|
841
841
|
private _roomId;
|
|
842
842
|
private _wsUrl;
|
|
843
|
+
private _httpToken;
|
|
843
844
|
/**
|
|
844
845
|
* Creates an SDK context instance
|
|
845
846
|
*
|
|
@@ -856,6 +857,8 @@ declare class SDKContext {
|
|
|
856
857
|
* @author sansen
|
|
857
858
|
*/
|
|
858
859
|
setLivekitConfig(livekitUrl: string, token: string, roomId: string): void;
|
|
860
|
+
setAuthToken(token: string): void;
|
|
861
|
+
get authToken(): string | undefined;
|
|
859
862
|
/**
|
|
860
863
|
* Emits an error event and creates SDKError instance
|
|
861
864
|
*
|
|
@@ -1119,6 +1122,12 @@ declare class SDKClient extends Disposable {
|
|
|
1119
1122
|
* @author sansen
|
|
1120
1123
|
*/
|
|
1121
1124
|
get isAudioCapturing(): boolean;
|
|
1125
|
+
/**
|
|
1126
|
+
* Set authentication token
|
|
1127
|
+
* @param token Authentication token
|
|
1128
|
+
* @author sansen
|
|
1129
|
+
*/
|
|
1130
|
+
setAuthToken(token: string): void;
|
|
1122
1131
|
/**
|
|
1123
1132
|
* Start camera capture and periodic screenshot sending over WebSocket
|
|
1124
1133
|
* @returns Promise<void>
|