31 lines
585 B
React
31 lines
585 B
React
|
import { gql } from '@apollo/client';
|
||
|
|
||
|
export const CONNECTION_STATUS_REPORT_SUBSCRIPTION = gql`subscription {
|
||
|
user_connectionStatusReport {
|
||
|
user {
|
||
|
userId
|
||
|
name
|
||
|
avatar
|
||
|
color
|
||
|
isModerator
|
||
|
isOnline
|
||
|
}
|
||
|
clientNotResponding
|
||
|
lastUnstableStatus
|
||
|
lastUnstableStatusAt
|
||
|
currentStatus
|
||
|
}
|
||
|
}`;
|
||
|
|
||
|
export const CONNECTION_STATUS_SUBSCRIPTION = gql`subscription {
|
||
|
user_connectionStatus {
|
||
|
connectionAliveAt
|
||
|
userClientResponseAt
|
||
|
rttInMs
|
||
|
status
|
||
|
statusUpdatedAt
|
||
|
}
|
||
|
}`;
|
||
|
|
||
|
export default CONNECTION_STATUS_REPORT_SUBSCRIPTION;
|