Class BaseClient
Base client for Event and Engine client
Methods summary
public
|
#
__construct( string $baseUrl, float $timeout, float $connectTimeout )
Parameters
- $baseUrl
- Base URL to the server
- $timeout
- Timeout of the request in seconds. Use 0 to wait indefinitely
- $connectTimeout
- 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
- HTTP request method
- $url
- Relative or absolute url
- $body
- HTTP request body
Returns
array JSON response
Throws
|