ChannelUsersController
class ChannelUsersController extends Controller
Traits
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.
Get meta / status information for the given channels.
Get meta / status information for the given channel.
Details
in
Controller at line 25
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 43
protected Application
resolveApplication(string $appId)
Resolve the application instance for the given ID.
in
Controller at line 61
protected void
verifySignature(Request $request, Application $application, string $body, array $query)
Verify the Pusher authentication signature.
in
Controller at line 96
static protected string
formatQueryParametersForVerification(array $params)
Format the given parameters into the correct format for signature verification.
in
InteractsWithChannelInformation at line 18
protected array
infoForChannels(Application $application, array $channels, string $info)
Get meta / status information for the given channels.
in
InteractsWithChannelInformation at line 32
protected array
info(Application $application, string $channel, string $info)
Get meta / status information for the given channel.
in
InteractsWithChannelInformation at line 77
protected bool
isPresenceChannel(Channel $channel)
Determine if the given channel is a presence channel.
in
InteractsWithChannelInformation at line 85
protected bool
isCacheChannel(Channel $channel)
Determine if the given channel is a cache channel.
in
InteractsWithChannelInformation at line 93
protected int
userCount(Channel $channel)
Get the number of unique users subscribed to the presence channel.
at line 19
JsonResponse
__invoke(Request $request, string $appId, string $channel)
Handle the request.