2023-12-05 22:18:45 +08:00
|
|
|
import { gql } from '@apollo/client';
|
|
|
|
|
2024-03-28 23:09:37 +08:00
|
|
|
export const CONNECTION_STATUS_REPORT_SUBSCRIPTION = gql`subscription ConnStatusReport {
|
2023-12-05 22:18:45 +08:00
|
|
|
user_connectionStatusReport {
|
|
|
|
user {
|
|
|
|
userId
|
|
|
|
name
|
|
|
|
avatar
|
|
|
|
color
|
|
|
|
isModerator
|
|
|
|
isOnline
|
|
|
|
}
|
|
|
|
clientNotResponding
|
|
|
|
lastUnstableStatus
|
|
|
|
lastUnstableStatusAt
|
|
|
|
currentStatus
|
|
|
|
}
|
|
|
|
}`;
|
|
|
|
|
2024-03-28 23:09:37 +08:00
|
|
|
export const CONNECTION_STATUS_SUBSCRIPTION = gql`subscription ConnStatus {
|
2023-12-05 22:18:45 +08:00
|
|
|
user_connectionStatus {
|
|
|
|
connectionAliveAt
|
|
|
|
userClientResponseAt
|
|
|
|
status
|
|
|
|
statusUpdatedAt
|
|
|
|
}
|
|
|
|
}`;
|
|
|
|
|
|
|
|
export default CONNECTION_STATUS_REPORT_SUBSCRIPTION;
|