ChannelController
class ChannelController extends Controller
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.
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.
at line 16
JsonResponse
__invoke(Request $request, string $appId, string $channel)
Handle the request.