modify plugin name
This commit is contained in:
+10
-7
@@ -163,14 +163,17 @@ class Http extends Component
|
|||||||
$open($request);
|
$open($request);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
while (($data = $response->recv()) instanceof Frame) {
|
|
||||||
try {
|
if ($response->isWritable()) {
|
||||||
if ($data->opcode == WEBSOCKET_OPCODE_PING || $data->opcode == WEBSOCKET_OPCODE_PONG) {
|
while (($data = $response->recv()) instanceof Frame) {
|
||||||
continue;
|
try {
|
||||||
|
if ($data->opcode == WEBSOCKET_OPCODE_PING || $data->opcode == WEBSOCKET_OPCODE_PONG) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
call_user_func($message, $data);
|
||||||
|
} catch (\Throwable $throwable) {
|
||||||
|
$this->logger()->error($throwable->getMessage());
|
||||||
}
|
}
|
||||||
call_user_func($message, $data);
|
|
||||||
} catch (\Throwable $throwable) {
|
|
||||||
$this->logger()->error($throwable->getMessage());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
call_user_func($close, $response->fd);
|
call_user_func($close, $response->fd);
|
||||||
|
|||||||
Reference in New Issue
Block a user