Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snippets & Examples #63

Open
brwxisme opened this issue Apr 15, 2023 · 5 comments
Open

Snippets & Examples #63

brwxisme opened this issue Apr 15, 2023 · 5 comments
Labels
documentation Improvements or additions to documentation

Comments

@brwxisme
Copy link

Improve documentation

Link

Describe the problem

cant run most of them with Godot 4.0.2

Describe the improvement

A clear and concise description of the improvement.

Additional context

Add any other context or screenshots that help clarify your question.

@brwxisme brwxisme added the documentation Improvements or additions to documentation label Apr 15, 2023
@fenix-hub
Copy link
Collaborator

Thanks for pointing out. Currently those snippets and examples are for Godot 3.x
Will make sure to port them to godot 4.

@brwxisme
Copy link
Author

can i contribute to wiki? and how ?

@fenix-hub
Copy link
Collaborator

Sure you can.
You may clone the repository/wiki and work on your own, pushing the changes to your fork/clone.
Then open an issue here giving me the link of your version of the wiki, so I can take your changes.

@brwxisme
Copy link
Author

ok,
btw is can i do Realtimechannel like "from pepega_table where emote_type = 1" ?

@Giobar97
Copy link

For those who are waiting for wiki to be updated, you can take this example meantime:

Instead of
Supabase.auth.connect("signed_in", self, "_on_signed_in")
use this for Godot 4.x:
Supabase.auth.signed_in.connect(_on_signed_in)

This change is valid for every snippet in the wiki, just change names accordingly.
Basically you will call "connect" method on supabase signal, while you pass as parameter your own function to run when the signal is received. There's no need to reference to self anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants