public function attachViaWebSocket(?string $id,
                                       string $detachKeys = null,
                                       bool $logs = false,
                                       bool $stream = false,
                                       bool $stdin = false,
                                       bool $stdout = false,
                                       bool $stderr = false)
    {
        $url = self::$base_url.'/'.($id ?? $this->container_id).'/attach/ws?'.http_build_query(
            compact('detachKeys', 'logs', 'stream', 'stdin', 'stdout', 'stderr'));

        return self::$curl->get($url);
    }
public function attachViaWebSocket(?string $id,
                                       string $detachKeys = null,
                                       bool $logs = false,
                                       bool $stream = false,
                                       bool $stdin = false,
                                       bool $stdout = false,
                                       bool $stderr = false)
    {
        $url = self::$base_url.'/'.($id ?? $this->container_id).'/attach/ws?'.http_build_query(
            compact('detachKeys', 'logs', 'stream', 'stdin', 'stdout', 'stderr'));

        return self::$curl->get($url);
    }
public function attachViaWebSocket ( ? string $ id , string $ detachKeys = null , bool $ logs = false , bool $ stream = false , bool $ stdin = false , bool $ stdout = false , bool $ stderr = false ) { $ url = self :: $ base_url . '/' . ( $ id ?? $ this -> container_id ) . '/attach/ws?' . http_build_query ( compact ( 'detachKeys' , 'logs' , 'stream' , 'stdin' , 'stdout' , 'stderr' ) ) ; return self :: $ curl -> get ( $ url ) ; }
Attach to a container via a websocket.

@param string|null $id
@param string      $detachKeys
@param bool        $logs
@param bool        $stream
@param bool        $stdin
@param bool        $stdout
@param bool        $stderr

@return mixed 101 200

@throws Exception

@see https://docs.docker.com/engine/api/v1.37/#operation/ContainerAttachWebsocket
Attach to a container via a websocket .