modify plugin name

This commit is contained in:
2022-02-14 14:41:41 +08:00
parent 485b951e52
commit 12a401be8e
+3
View File
@@ -157,9 +157,12 @@ class Http extends Component
try { try {
$response->upgrade(); $response->upgrade();
$fdCollector->set($response->fd, $response); $fdCollector->set($response->fd, $response);
if (is_callable($handshake)) {
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) {