onUserTokenExpired
Feature Introduction
info
Callback for token expiration.
- iOS
- Android
- Flutter
- uni-app
- Browser/Electron/MiniProgram
- Unity
Return Prototype
Function()? onUserTokenExpired;
Return Prototype
- (void)onUserTokenExpired;
Return Prototype
onUserTokenExpired(data: WSEvent): void;
Example Call
import { getSDK, CbEvents } from '@openim/wasm-client-sdk';
// or
// import { getSDK, CbEvents } from '@openim/client-sdk';
// const IMSDK = getSDK();
const IMSDK = getSDK();
IMSDK.on(CbEvents.OnUserTokenExpired, () => {});
Return Result
Name | Type | Description |
---|---|---|
data | WSEvent | - |
Return Prototype
onUserTokenExpired(data: WSEvent): void;
Return Result
Name | Type | Description |
---|---|---|
data | WSEvent | - |
Example Call
import IMSDK from 'openim-uniapp-polyfill';
IMSDK.subscribe(IMSDK.IMEvents.OnUserTokenExpired, () => {});
Prototype
void OnUserTokenExpired();