RequestAdded
extends GraphQLSubscription
in package
Table of Contents
- authorize() : bool
- Check if subscriber is allowed to listen to the subscription.
- filter() : bool
- Filter which subscribers should receive the subscription.
Methods
authorize()
Check if subscriber is allowed to listen to the subscription.
public
authorize(Subscriber $subscriber, Request $request) : bool
Parameters
- $subscriber : Subscriber
- $request : Request
Return values
bool —filter()
Filter which subscribers should receive the subscription.
public
filter(Subscriber $subscriber, mixed $root) : bool
Parameters
- $subscriber : Subscriber
- $root : mixed