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.

Return Value

void

at line 17
void disconnect()

Disconnect from the server.

Return Value

void

at line 24
void send(string $message, array $headers = [])

Send a protocol message.

Parameters

string $message
array $headers

Return Value

void

at line 29
string receive()

Receive the next protocol message.

Return Value

string

at line 34
void setTimeoutSeconds(float $seconds)

Set the transport timeout in seconds.

Parameters

float $seconds

Return Value

void

at line 41
array recipe()

Get the configuration needed to recreate this transport.

Return Value

array