EventsController
class EventsController extends Controller
Traits
Constants
| protected SIGNATURE_TOLERANCE |
The number of seconds either side of the current time a request signature remains valid. |
Methods
Resolve the application instance for the given ID.
Verify the Pusher authentication signature.
Format the given parameters into the correct format for signature verification.
Verify that the request signature has not expired.
Get meta / status information for the given channels.
Get meta / status information for the given channel.
Details
in
Controller at line 30
protected VerifiedRequestContext
verify(Request $request, string $appId)
Verify that the incoming request is valid.
Returns a per-request context DTO instead of storing state on instance properties — controllers are shared across coroutines in Hypervel.
in
Controller at line 48
protected Application
resolveApplication(string $appId)
Resolve the application instance for the given ID.
in
Controller at line 66
protected void
verifySignature(Request $request, Application $application, string $body, array $query)
Verify the Pusher authentication signature.
in
Controller at line 103
static protected string
formatQueryParametersForVerification(array $params)
Format the given parameters into the correct format for signature verification.
in
Controller at line 119
protected void
verifySignatureTimestamp(array $query)
Verify that the request signature has not expired.
in
InteractsWithChannelInformation at line 18
protected array
infoForChannels(Application $application, array $channels, string $info, bool $includeUserIds = false)
Get meta / status information for the given channels.
in
InteractsWithChannelInformation at line 36
protected array
info(Application $application, string $channel, string $info, bool $includeUserIds = false)
Get meta / status information for the given channel.
in
InteractsWithChannelInformation at line 87
protected bool
isPresenceChannel(Channel $channel)
Determine if the given channel is a presence channel.
in
InteractsWithChannelInformation at line 95
protected bool
isCacheChannel(Channel $channel)
Determine if the given channel is a cache channel.
in
InteractsWithChannelInformation at line 103
protected int
userCount(Channel $channel)
Get the number of unique users subscribed to the presence channel.
in
InteractsWithChannelInformation at line 111
protected array
userIds(Channel $channel)
Get the unique user IDs subscribed to the presence channel.
at line 22
JsonResponse
__invoke(Request $request, string $appId)
Handle the request.