Application
class Application
Constants
| DEFAULT_ACTIVITY_TIMEOUT |
The default application activity timeout in seconds. |
| DEFAULT_ACCEPT_CLIENT_EVENTS_FROM |
The default client-event sender policy. |
Methods
Create a new application instance.
Get the application ID.
Get the application key.
Get the application secret.
Get the allowed origins.
Get the client ping interval in seconds.
Get the activity timeout in seconds.
Get the maximum connections allowed for the application.
Determine if the application has a maximum connection limit.
Get the maximum message size allowed from the client.
Get who client events are accepted from for the application.
Get the rate limiting configuration for the application.
Determine if the application has rate limiting enabled.
Get the application options.
Get the webhook configuration for the application.
Determine if the application has webhooks configured.
Convert the application to an array.
Details
at line 22
__construct(string $id, string $key, string $secret, int $pingInterval, int $activityTimeout, array $allowedOrigins, int $maxMessageSize, int|null $maxConnections = null, string $acceptClientEventsFrom = self::DEFAULT_ACCEPT_CLIENT_EVENTS_FROM, array|null $rateLimiting = null, array $options = [], array $webhooks = [])
Create a new application instance.
at line 89
string
id()
Get the application ID.
at line 97
string
key()
Get the application key.
at line 105
string
secret()
Get the application secret.
at line 115
array
allowedOrigins()
Get the allowed origins.
at line 123
int
pingInterval()
Get the client ping interval in seconds.
at line 131
int
activityTimeout()
Get the activity timeout in seconds.
at line 139
int|null
maxConnections()
Get the maximum connections allowed for the application.
at line 147
bool
hasMaxConnectionLimit()
Determine if the application has a maximum connection limit.
at line 155
int
maxMessageSize()
Get the maximum message size allowed from the client.
at line 163
string
acceptClientEventsFrom()
Get who client events are accepted from for the application.
at line 171
array|null
rateLimiting()
Get the rate limiting configuration for the application.
at line 179
bool
usesRateLimiting()
Determine if the application has rate limiting enabled.
at line 187
array
options()
Get the application options.
at line 195
array
webhooks()
Get the webhook configuration for the application.
at line 203
bool
hasWebhooks()
Determine if the application has webhooks configured.
at line 222
array
toArray()
Convert the application to an array.
This is the Pusher client configuration shape, not the complete application constructor or configuration record.