mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-19 06:35:35 +08:00
add context() fetch data mode
enable coroutine override
This commit is contained in:
@@ -30,6 +30,7 @@ class WSCloseEvent implements SwooleEvent
|
||||
public function onActivate() {
|
||||
ZMUtil::checkWait();
|
||||
ConnectionManager::close($this->fd);
|
||||
set_coroutine_params(["server" => $this->server, "fd" => $this->fd]);
|
||||
foreach(ZMBuf::$events[SwooleEventAt::class] ?? [] as $v) {
|
||||
if(strtolower($v->type) == "close" && $this->parseSwooleRule($v)) {
|
||||
$c = $v->class;
|
||||
@@ -60,4 +61,4 @@ class WSCloseEvent implements SwooleEvent
|
||||
private function parseSwooleRule($v) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user