Documentation

ConnectionInterface

Table of Contents

Methods

connect()  : void
Establish a connection to the server.
disconnect()  : void
Close the connection to the server.
isConnected()  : bool
Check if the connection is established and ready to use.

Methods

connect()

Establish a connection to the server.

public connect(float $timeout) : void
Parameters
$timeout : float

The maximum time to wait for the connection to be established in seconds.

Tags
throws
RuntimeException

If the connection cannot be established within the specified timeout or an error occurs during the connection process.

isConnected()

Check if the connection is established and ready to use.

public isConnected() : bool
Return values
bool

        
On this page

Search results