interface ResponseInterface

Methods

bool
push(FrameInterface $frame)

Push a frame to the client.

init(mixed $frame)

Init fd by frame or request and so on, Must be used in swoole process mode.

int
getFd()

Get the connection file descriptor.

bool
close()

Close the connection.

Details

at line 12
bool push(FrameInterface $frame)

Push a frame to the client.

Parameters

FrameInterface $frame

Return Value

bool

at line 18
ResponseInterface init(mixed $frame)

Init fd by frame or request and so on, Must be used in swoole process mode.

Parameters

mixed $frame

Return Value

ResponseInterface

at line 23
int getFd()

Get the connection file descriptor.

Return Value

int

at line 28
bool close()

Close the connection.

Return Value

bool