interface Transport

Methods

void
onReceive(Closure $handler)

Register the incoming message handler.

run()

Run the transport.

void
send(string $message)

Send an encoded protocol message.

void
stream(Closure $stream)

Send messages produced by a streaming callback.

Details

at line 14
void onReceive(Closure $handler)

Register the incoming message handler.

Parameters

Closure $handler

Return Value

void

at line 21
run()

Run the transport.

Implementations return a response or nothing, which no native return type can cover.

at line 26
void send(string $message)

Send an encoded protocol message.

Parameters

string $message

Return Value

void

at line 31
void stream(Closure $stream)

Send messages produced by a streaming callback.

Parameters

Closure $stream

Return Value

void