supabase / realtime-py

A Python Client for Phoenix Channels
MIT License
134 stars 56 forks source link

Show example of async event handler #225

Open rdong8 opened 1 month ago

rdong8 commented 1 month ago

Improve documentation

Link

Add a link to the page which needs improvement (if relevant)

The example seems to define an async handler but never shows how to use it.

Describe the problem

Is the documentation missing? Or is it confusing? Why is it confusing?

Documentation is missing.

Describe the improvement

A clear and concise description of the improvement.

Show how to use the async handler and document it in the Supabase Python documentation.

Additional context

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

silentworks commented 1 month ago

Event handlers are sync. I think we forgot to remove that one from the example code.