sinch-rtc
Version:
RTC JavaScript/Web SDK
17 lines (16 loc) • 668 B
TypeScript
/**
* Callback object to be used to proceed in user registration/setup when
* registration credentials for the user in question have been obtained.
*/
export declare class ClientRegistration {
register: (jwtSignature: string) => Promise<void>;
registerFailed: () => void;
/**
* Methods to call when registration credentials for the user have been
* obtained.
*
* @param register - Callback to call with a signed JWT token for this user.
* @param registerFailed - Callback to call when registration for the user has failed
*/
constructor(register: (jwtSignature: string) => Promise<void>, registerFailed: () => void);
}