public function getUrl($include_scheme = true)
    {
        $parts = parse_url(url('/'));
        $scheme = '';
        if ($include_scheme) {
            $scheme = 'ws://';
        }
        return $scheme . $parts['host'] . ':' . $this->port;
    }
public function getUrl($include_scheme = true)
    {
        $parts = parse_url(url('/'));
        $scheme = '';
        if ($include_scheme) {
            $scheme = 'ws://';
        }
        return $scheme . $parts['host'] . ':' . $this->port;
    }
public function getUrl ( $ include_scheme = true ) { $ parts = parse_url ( url ( '/' ) ) ; $ scheme = '' ; if ( $ include_scheme ) { $ scheme = 'ws://' ; } return $ scheme . $ parts [ 'host' ] . ':' . $ this -> port ; }
Constructs and gets the endpoint URL.

@return string
Constructs and gets the endpoint URL .