bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/audio/audio-graphql/queries.ts

30 lines
477 B
TypeScript
Raw Normal View History

2024-06-07 02:47:41 +08:00
import { gql } from '@apollo/client';
interface VoiceUsers {
joined: string | null;
listenOnly: string | null;
muted: string | null;
talking: string | null;
userId: string;
}
export interface VoiceUsersResponse {
user_voice: VoiceUsers[];
}
export const VOICE_USERS_SUBSCRIPTION = gql`
subscription VoiceUsers {
user_voice {
joined
listenOnly
muted
talking
userId
}
}
`;
export default {
VOICE_USERS_SUBSCRIPTION,
};