Application
class Application
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 12
__construct(string $id, string $key, string $secret, int $pingInterval, int $activityTimeout, array $allowedOrigins, int $maxMessageSize, int|null $maxConnections = null, string $acceptClientEventsFrom = 'members', array|null $rateLimiting = null, array $options = [], array $webhooks = [])
Create a new application instance.
at line 31
string
id()
Get the application ID.
at line 39
string
key()
Get the application key.
at line 47
string
secret()
Get the application secret.
at line 57
array
allowedOrigins()
Get the allowed origins.
at line 65
int
pingInterval()
Get the client ping interval in seconds.
at line 73
int
activityTimeout()
Get the activity timeout in seconds.
at line 81
int|null
maxConnections()
Get the maximum connections allowed for the application.
at line 89
bool
hasMaxConnectionLimit()
Determine if the application has a maximum connection limit.
at line 97
int
maxMessageSize()
Get the maximum message size allowed from the client.
at line 105
string
acceptClientEventsFrom()
Get who client events are accepted from for the application.
at line 113
array|null
rateLimiting()
Get the rate limiting configuration for the application.
at line 121
bool
usesRateLimiting()
Determine if the application has rate limiting enabled.
at line 129
array
options()
Get the application options.
at line 137
array
webhooks()
Get the webhook configuration for the application.
at line 145
bool
hasWebhooks()
Determine if the application has webhooks configured.
at line 155
array
toArray()
Convert the application to an array.