class Response implements ResponseInterface

Properties

protected int $fd

Methods

__construct(mixed $connection)

Create a new WebSocket response instance.

bool
push(FrameInterface $frame)

Push a frame to the WebSocket connection.

init(mixed $frame)

Initialize the file descriptor from a frame or request.

int
getFd()

Get the file descriptor.

bool
close()

Close the WebSocket connection.

Details

at line 24
__construct(mixed $connection)

Create a new WebSocket response instance.

Parameters

mixed $connection

at line 31
bool push(FrameInterface $frame)

Push a frame to the WebSocket connection.

Parameters

FrameInterface $frame

Return Value

bool

at line 50
ResponseInterface init(mixed $frame)

Initialize the file descriptor from a frame or request.

Parameters

mixed $frame

Return Value

ResponseInterface

at line 67
int getFd()

Get the file descriptor.

Return Value

int

at line 75
bool close()

Close the WebSocket connection.

Return Value

bool