Laravoole\Wrapper\SwooleWebSocketWrapper::onClose PHP Метод

onClose() публичный Метод

public onClose ( $server, $fd )
    public function onClose($server, $fd)
    {
        unset($this->unfinished[$fd]);
        unset($this->connections[$fd]);
        if (isset($this->wrapper_config['LARAVOOLE_WEBSOCKET_CLOSE_CALLBACK'])) {
            $data = new \stdClass();
            $data->m = $this->wrapper_config['LARAVOOLE_WEBSOCKET_CLOSE_CALLBACK'];
            $data->p = [];
            $data->e = null;
            $this->dispatch($server, $fd, $data);
        }
    }