Type aliases Builtin Msg Defined in typings/LiveMsg.ts:97 Type declaration data: { extension?: Record < string , any > } [ key: string ]: any Optional extension?: Record < string , any > to_ user_ ids: string [] Event Type Defined in typings/EventType.ts:97 Type parameters Keyframe Types Keyframe Types< Type > : { [ Property in keyof Type as Property ] : ( nextKeyframes: Type [ Property ] , prevKeyframes: Type [ Property ] , frontRequestId: string ) => void }
Defined in typings/EventType.ts:93 Type parameters Live Action React Callback Live
Action
React
Callback
< Snapshot > : Pick < Live < Snapshot > , "broadcast" | "exit" | "kick" | "toggleMicro" | "forbidMicro" | "sendKeyframe" | "getFramesByKey" | "setSelfInfo" | "updateStatus" > Defined in typings/Live.ts:140 Type parameters Snapshot: Record < string , any > Live Event Type Live Event Type< Snapshot > : { broadcast: any ; builtinEvent: any ; error: any ; keyframes: any ; kickOut: any ; readyKeyframeSync: any ; roomChange: any ; selfInfoUpdate: any ; userChange: any ; userListUpdate: any }
Defined in typings/EventType.ts:35 Type parameters Type declaration broadcast: function broadcast( evtMsg: Record < string , any > , frontRequestId: string ) : void Defined in typings/EventType.ts:58 Parameters evtMsg: Record < string , any > frontRequestId: string Returns void builtin Event: function Defined in typings/EventType.ts:40 Parameters Returns void error: function Defined in typings/EventType.ts:89 Parameters Returns void keyframes: function keyframes( keyframes: Partial < Snapshot > , frontRequestId: string ) : void Defined in typings/EventType.ts:69 Parameters keyframes: Partial < Snapshot > frontRequestId: string Returns void kick Out: function Defined in typings/EventType.ts:84 Returns void ready Keyframe Sync: function ready Keyframe Sync( lastKeyframe: Partial < Snapshot > ) : void Defined in typings/EventType.ts:64 Parameters lastKeyframe: Partial < Snapshot > Returns void room Change: function Defined in typings/EventType.ts:52 Parameters Returns void self Info Update: function self Info Update( userInfo: UserInfo , frontRequestId: string ) : void Defined in typings/EventType.ts:74 Parameters Returns void user Change: function Defined in typings/EventType.ts:46 Parameters Returns void user List Update: function user List Update( userList: UserInfo [] , frontRequestId: string ) : void Defined in typings/EventType.ts:79 Parameters Returns void Live Msg Live
Msg
: { appId
: string ; code
: string ; command
: Command ; data
: Record < string , any > | Record < string , any > [] ; frontRequestId
: string ; message
: string ; requestId
: string ; roomCode
: string ; triggerUserId
: string } Defined in typings/LiveMsg.ts:118 Type declaration app Id: string code: string data: Record < string , any > | Record < string , any > [] front Request Id: string message: string request Id: string room Code: string trigger User Id: string Live Provider Prop Types Live
Provider
Prop
Types
< Snapshot > : { children
?: React.ReactNode ; live
?: Live < Snapshot > } Defined in createLiveReact.tsx:13 Type parameters Type declaration Optional children?: React.ReactNode Optional live?: Live < Snapshot > Req Live Msg Req
Live
Msg
: { command
: Command ; data
: { to_user_ids
?: string [] } ; front_request_id
: string } Defined in typings/LiveMsg.ts:28 Type declaration data: { to_user_ids?: string [] } [ key: string ]: any Optional to_ user_ ids?: string [] front_ request_ id: string Room Info Room Info: { info: { app_id: string ; create_time: string ; create_user_id: string ; extension: Record < string , any > ; id: string | number ; room_code: string ; status: string | number } ; init_timestamp: string ; last_frame: Record < string , any > }
Defined in typings/RoomInfo.ts:1 Type declaration info: { app_id: string ; create_time: string ; create_user_id: string ; extension: Record < string , any > ; id: string | number ; room_code: string ; status: string | number } app_ id: string create_ time: string create_ user_ id: string extension: Record < string , any > id: string | number room_ code: string status: string | number init_ timestamp: string last_ frame: Record < string , any > User Info User
Info
: { current_ws_online
?: boolean ; extension
?: UserInfoExt ; id
: string ; mem_user_status
?: MemUserStatus ; micro_status
: boolean ; once_ws_online
?: boolean ; permission
?: Record < string , boolean > ; rtc
: boolean ; status
?: UserStatus ; user_role
?: number | string } Defined in typings/UserInfo.ts:49 Type declaration Optional current_ ws_ online?: boolean id: string Optional mem_ user_ status?: MemUserStatus micro_ status: boolean Optional once_ ws_ online?: boolean Optional permission?: Record < string , boolean > rtc: boolean Optional user_ role?: number | string User Info Ext User Info Ext: { avatar?: string ; nickname?: string }
Defined in typings/UserInfo.ts:31 Type declaration [ key: string ]: any Optional avatar?: string Optional nickname?: string Web Socket Error Defined in typings/WebSocket.ts:31 Type declaration Optional error?: any Optional target?: Event | CloseEvent Web Socket Event Type Web Socket Event Type: { ws.afterConnect: any ; ws.beforeConnect: any ; ws.error: any ; ws.message: any ; ws.readyStateUpdate: any }
Defined in typings/EventType.ts:9 Type declaration ws.after Connect: function ws.after Connect( reConnect?: number ) : void Defined in typings/EventType.ts:22 Parameters Optional reConnect: number Returns void ws.before Connect: function ws.before Connect( reConnect?: number ) : void Defined in typings/EventType.ts:18 Parameters Optional reConnect: number Returns void ws.error: function Defined in typings/EventType.ts:27 Parameters Returns void ws.message: function Defined in typings/EventType.ts:32 Parameters Returns void ws.ready State Update: function Defined in typings/EventType.ts:14 Parameters Returns void
内置事件数据结构体。