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;
    }
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;
    }
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 ; }
enable mask to mock the browser
enable mask to mock the browser