def connect(endpoint, port, ssrc)
      @endpoint = endpoint
      @endpoint = @endpoint[6..-1] if @endpoint.start_with? 'wss://'
      @endpoint = @endpoint.gsub(':80', '') # The endpoint may contain a port, we don't want that
      @endpoint = Resolv.getaddress @endpoint

      @port = port
      @ssrc = ssrc
    end
def connect(endpoint, port, ssrc)
      @endpoint = endpoint
      @endpoint = @endpoint[6..-1] if @endpoint.start_with? 'wss://'
      @endpoint = @endpoint.gsub(':80', '') # The endpoint may contain a port, we don't want that
      @endpoint = Resolv.getaddress @endpoint

      @port = port
      @ssrc = ssrc
    end
Creates a new UDP connection. Only creates a socket as the discovery reply may come before the data is
 initialized.
 Initializes the UDP socket with data obtained from opcode 2.
 @param endpoint [String] The voice endpoint to connect to.
 @param port [Integer] The port to connect to.
 @param ssrc [Integer] The Super Secret Relay Code (SSRC). Discord uses this to identify different voice users
   on the same endpoint.