talawa-api / Exports / resolvers/Subscription/messageSentToDirectChat
• Const
messageSentToDirectChat: SubscriptionResolvers
["messageSentToDirectChat"
]
This property included a subscribe
method, which is used to
subscribe the receiver
and sender
to receive Direct Chat updates.
Remarks
To control updates on a per-client basis, the function uses the withFilter
method imported from apollo-server-express
module.
You can learn about subscription
here.
src/resolvers/Subscription/messageSentToDirectChat.ts:21
▸ filterFunction(payload
, context
): boolean
Name | Type |
---|---|
payload |
any |
context |
any |
boolean