def inject_reconnect(url = nil)
      # When no URL is specified, the data should be nil, as is the case with Discord-sent packets.
      data = url ? { url: url } : nil

      handle_message({
        op: Opcodes::RECONNECT,
        d: data
      }.to_json)
    end
def inject_reconnect(url = nil)
      # When no URL is specified, the data should be nil, as is the case with Discord-sent packets.
      data = url ? { url: url } : nil

      handle_message({
        op: Opcodes::RECONNECT,
        d: data
      }.to_json)
    end
Injects a reconnect event (op 7) into the event processor, causing Discord to reconnect to the given gateway URL.
 If the URL is set to nil, it will reconnect and get an entirely new gateway URL. This method has not much use
 outside of testing and implementing highly custom reconnect logic.
 @param url [String, nil] the URL to connect to or nil if one should be obtained from Discord.