public function withMock(bool $ssl): self
    {
        $settings = ['websocket_mask' => true];
        if ($ssl) {
            $settings['ssl_host_name'] = $this->uri->getHost();
        }
        $this->client->set($settings);

        return $this;
    }