def to_s
      string = ''

      string += 'ws'
      string += 's' if self.secure
      string += '://'
      string += self.host
      string += ':' + self.port.to_s if self.port
      string += self.resource_name || '/'

      return string
    end
def to_s
      string = ''

      string += 'ws'
      string += 's' if self.secure
      string += '://'
      string += self.host
      string += ':' + self.port.to_s if self.port
      string += self.resource_name || '/'

      return string
    end
Construct a WebSocket URL.
 @example Construct
   url = LibWebSocket::URL.new
   url.host = 'example.com'
   url.port = '3000'
   url.secure = true
   url.to_s # => 'wss://example.com:3000'