class Application

Methods

__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.

string
id()

Get the application ID.

string
key()

Get the application key.

string
secret()

Get the application secret.

array
allowedOrigins()

Get the allowed origins.

int
pingInterval()

Get the client ping interval in seconds.

int
activityTimeout()

Get the activity timeout in seconds.

int|null
maxConnections()

Get the maximum connections allowed for the application.

bool
hasMaxConnectionLimit()

Determine if the application has a maximum connection limit.

int
maxMessageSize()

Get the maximum message size allowed from the client.

string
acceptClientEventsFrom()

Get who client events are accepted from for the application.

array|null
rateLimiting()

Get the rate limiting configuration for the application.

bool
usesRateLimiting()

Determine if the application has rate limiting enabled.

array
options()

Get the application options.

array
webhooks()

Get the webhook configuration for the application.

bool
hasWebhooks()

Determine if the application has webhooks configured.

array
toArray()

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.

Parameters

string $id
string $key
string $secret
int $pingInterval
int $activityTimeout
array $allowedOrigins
int $maxMessageSize
int|null $maxConnections
string $acceptClientEventsFrom
array|null $rateLimiting
array $options
array $webhooks

at line 31
string id()

Get the application ID.

Return Value

string

at line 39
string key()

Get the application key.

Return Value

string

at line 47
string secret()

Get the application secret.

Return Value

string

at line 57
array allowedOrigins()

Get the allowed origins.

Return Value

array

at line 65
int pingInterval()

Get the client ping interval in seconds.

Return Value

int

at line 73
int activityTimeout()

Get the activity timeout in seconds.

Return Value

int

at line 81
int|null maxConnections()

Get the maximum connections allowed for the application.

Return Value

int|null

at line 89
bool hasMaxConnectionLimit()

Determine if the application has a maximum connection limit.

Return Value

bool

at line 97
int maxMessageSize()

Get the maximum message size allowed from the client.

Return Value

int

at line 105
string acceptClientEventsFrom()

Get who client events are accepted from for the application.

Return Value

string

at line 113
array|null rateLimiting()

Get the rate limiting configuration for the application.

Return Value

array|null

at line 121
bool usesRateLimiting()

Determine if the application has rate limiting enabled.

Return Value

bool

at line 129
array options()

Get the application options.

Return Value

array

at line 137
array webhooks()

Get the webhook configuration for the application.

Return Value

array

at line 145
bool hasWebhooks()

Determine if the application has webhooks configured.

Return Value

bool

at line 155
array toArray()

Convert the application to an array.

Return Value

array