Class BaseClient
Base client for Event and Engine client
Methods summary
public
|
#
__construct( string $baseUrl, float $timeout, float $connectTimeout )
Parameters
- $baseUrl
string Base URL to the server
- $timeout
float Timeout of the request in seconds. Use 0 to wait indefinitely
- $connectTimeout
float Number of seconds to wait while trying to connect to a server
|
public
string
|
#
getStatus( )
Get the status of the Event Server or Engine Instance
Get the status of the Event Server or Engine Instance
Returns
string status
|
protected
array
|
#
sendRequest( string $method, string $url, string $body )
Send a HTTP request to the server
Send a HTTP request to the server
Parameters
- $method
string HTTP request method
- $url
string Relative or absolute url
- $body
string HTTP request body
Returns
array JSON response
Throws
|
Properties summary
public
mixed
|
$client
|
|
|