Response
class Response implements ResponseInterface
Properties
| protected int | $fd |
Methods
__construct(mixed $connection)
Create a new WebSocket response instance.
bool
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.
at line 31
bool
push(FrameInterface $frame)
Push a frame to the WebSocket connection.
at line 50
ResponseInterface
init(mixed $frame)
Initialize the file descriptor from a frame or request.
at line 67
int
getFd()
Get the file descriptor.
at line 75
bool
close()
Close the WebSocket connection.