bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/audio/audio-graphql/queries.ts
2024-06-21 18:45:05 -03:00

27 lines
425 B
TypeScript

import { gql } from '@apollo/client';
interface VoiceUsers {
joined: string | null;
listenOnly: string | null;
muted: string | null;
userId: string;
}
export interface VoiceUsersResponse {
user_voice: VoiceUsers[];
}
export const VOICE_USERS_SUBSCRIPTION = gql`
subscription VoiceUsers {
user_voice {
joined
listenOnly
userId
}
}
`;
export default {
VOICE_USERS_SUBSCRIPTION,
};