GodotNuts / GodotFirebase

Implementations of Firebase for Godot using GDScript
MIT License
554 stars 79 forks source link

Invalid call. Nonexistent function 'connect_to_host' in base 'Node'. #24

Closed h1p3rcub3 closed 4 years ago

h1p3rcub3 commented 4 years ago

I get this error when trying to set a listener to Firebase.Database.get_database_reference().

The error is in line 55 of FirebaseReference.gd:55.

func set_listener(listener_ref):
    if !listener:
        listener = listener_ref
        add_child(listener)
        listener.connect("new_sse_event", self, "on_new_sse_event")
        var base_url = _get_list_url().trim_suffix(separator)
        var extended_url = separator + db_path + _get_remaining_path(false)
        listener.connect_to_host(base_url, extended_url)

The function receives a listener_ref of type Node, which doesn't have the "connect_to_host" method.

h1p3rcub3 commented 4 years ago

Please ignore me. I download the plugin but didn't realize that the HTTPSSEClient folder was empty.