Interface CloudSessionInterface
Methods
deleteServerSessions
- deleteServerSessions(options: { sessions: { scene: "p2p" | "team" | "superTeam"; to: string }[]; done: any }): void
Parameters
options: { sessions: { scene: "p2p" | "team" | "superTeam"; to: string }[]; done: any }
sessions: { scene: "p2p" | "team" | "superTeam"; to: string }[]
done:function
Returns void
getServerSession
- getServerSession(options: { scene: "p2p" | "team" | "superTeam"; to: string; done: any }): void
Parameters
options: { scene: "p2p" | "team" | "superTeam"; to: string; done: any }
scene: "p2p" | "team" | "superTeam"
to: string
done:function
Returns void
getServerSessions
- getServerSessions(options: { limit?: number; maxTimestamp?: number; minTimestamp?: number; needLastMsg?: boolean; done: any }): void
Parameters
options: { limit?: number; maxTimestamp?: number; minTimestamp?: number; needLastMsg?: boolean; done: any }
Optional limit?: number
Optional maxTimestamp?: number
Optional minTimestamp?: number
Optional needLastMsg?: boolean
done:function
Returns void
updateServerSession
- updateServerSession(options: { extra: string; scene: "p2p" | "team" | "superTeam"; to: string; done: any }): void
Parameters
options: { extra: string; scene: "p2p" | "team" | "superTeam"; to: string; done: any }
extra: string
scene: "p2p" | "team" | "superTeam"
to: string
done:function
Returns void
云端会话服务 API 定义
注:SessionInterface 是本地会话,而 CloudSessionInterface 是远端会话。远端会话需要开通服务才能使用。