refactor: add leaveSocketIORoom in sdk#call

feat/group-preview
moonrailgun 2 years ago
parent d1a3523215
commit 0d21980e40

@ -1,6 +1,6 @@
{ {
"name": "tailchat-server-sdk", "name": "tailchat-server-sdk",
"version": "0.0.15", "version": "0.0.16",
"description": "", "description": "",
"main": "dist/index.js", "main": "dist/index.js",
"bin": { "bin": {

@ -17,6 +17,15 @@ export function call(ctx: TcPureContext) {
userId, userId,
}); });
}, },
/**
* socketio
*/
async leaveSocketIORoom(roomIds: string[], userId?: string) {
await ctx.call('gateway.leaveRoom', {
roomIds,
userId,
});
},
/** /**
* *
* groupId * groupId

Loading…
Cancel
Save