ConnectionInterface
in
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
disconnect()
Close the connection to the server.
public
disconnect() : void
isConnected()
Check if the connection is established and ready to use.
public
isConnected() : bool