改名
This commit is contained in:
@@ -58,7 +58,7 @@ class OnClose extends Callback
|
||||
}
|
||||
$node = $router->search('/' . Socket::CLOSE . '::event', 'sw::socket');
|
||||
if ($node instanceof Node) {
|
||||
$node->dispatch();
|
||||
$node->dispatch($server, $fd);
|
||||
}
|
||||
} catch (\Throwable $exception) {
|
||||
$this->addError($exception);
|
||||
|
||||
@@ -102,7 +102,7 @@ class OnHandshake extends Callback
|
||||
if ($node === null) {
|
||||
return $this->disconnect($response, 502);
|
||||
}
|
||||
return $node->dispatch();
|
||||
return $node->dispatch($request, $response);
|
||||
} catch (\Throwable $exception) {
|
||||
$this->addError($exception->getMessage());
|
||||
return $this->disconnect($response, 500);
|
||||
|
||||
@@ -68,7 +68,7 @@ class OnMessage extends Callback
|
||||
if ($node === null) {
|
||||
throw new Exception('Page not found.');
|
||||
}
|
||||
return $node->dispatch();
|
||||
return $node->dispatch($server, $frame);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user