\adminmatrix\swoole\poolClient

Summary

Methods
Properties
Constants
connect()
disconnect()
isConnected()
reset()
validate()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

connect()

connect(array  $config) : \Swoole\Coroutine\Client

Connect to the specified Server and returns the connection resource

Parameters

array $config

Returns

\Swoole\Coroutine\Client —

disconnect()

disconnect(\Swoole\Coroutine\Client  $connection) : mixed

Disconnect and free resources

Parameters

\Swoole\Coroutine\Client $connection

Returns

mixed —

isConnected()

isConnected(\Swoole\Coroutine\Client  $connection) : bool

Whether the connection is established

Parameters

\Swoole\Coroutine\Client $connection

Returns

bool —

reset()

reset(\Swoole\Coroutine\Client  $connection, array  $config) : mixed

Reset the connection

Parameters

\Swoole\Coroutine\Client $connection
array $config

Returns

mixed —

validate()

validate(mixed  $connection) : bool

Validate the connection

Parameters

mixed $connection

Returns

bool —