modify plugin name
This commit is contained in:
+1
-2
@@ -159,11 +159,10 @@ class Http extends Component
|
|||||||
$fdCollector->set($response->fd, $response);
|
$fdCollector->set($response->fd, $response);
|
||||||
if (is_callable($handshake)) {
|
if (is_callable($handshake)) {
|
||||||
call_user_func($handshake, $request, $response);
|
call_user_func($handshake, $request, $response);
|
||||||
|
}
|
||||||
if (is_callable($open)) {
|
if (is_callable($open)) {
|
||||||
$open($request);
|
$open($request);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
while (($data = $response->recv()) instanceof Frame) {
|
while (($data = $response->recv()) instanceof Frame) {
|
||||||
try {
|
try {
|
||||||
if ($data->opcode == WEBSOCKET_OPCODE_PING || $data->opcode == WEBSOCKET_OPCODE_PONG) {
|
if ($data->opcode == WEBSOCKET_OPCODE_PING || $data->opcode == WEBSOCKET_OPCODE_PONG) {
|
||||||
|
|||||||
Reference in New Issue
Block a user