Transport
interface Transport
Methods
void
connect()
Connect to the server.
void
disconnect()
Disconnect from the server.
void
send(string $message, array $headers = [])
Send a protocol message.
string
receive()
Receive the next protocol message.
void
setTimeoutSeconds(float $seconds)
Set the transport timeout in seconds.
array
recipe()
Get the configuration needed to recreate this transport.
Details
at line 12
void
connect()
Connect to the server.
at line 17
void
disconnect()
Disconnect from the server.
at line 24
void
send(string $message, array $headers = [])
Send a protocol message.
at line 29
string
receive()
Receive the next protocol message.
at line 34
void
setTimeoutSeconds(float $seconds)
Set the transport timeout in seconds.
at line 41
array
recipe()
Get the configuration needed to recreate this transport.