Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Add some detail on presence
  • Loading branch information
jhagas authored Jul 20, 2024
1 parent 35db0a6 commit 591160a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ To use Realtime (Postgres Changes), please see the `examples/realtime-postgresCh
| `login_email(String email_a, String password_a)` | **(OPTIONAL, ONLY IF USING RLS)**, Returns http response code `int` |
| `login_phone(String phone_a, String password_a)` | **(OPTIONAL, ONLY IF USING RLS)**, Returns http response code `int` |
| `begin(String hostname, String key, void (*func)(String))` | Setup the Realtime connection with Supabase URL and Anon key, also put the handle function for the incoming message |
| `sendPresence(String device_name)` | Track the presence (online status) of your ESP device (OPTIONAL) |
| `sendPresence(String device_name)` | Track the presence (online status) of your ESP device. Track presence on realtime channel "ESP" |
| `addChangesListener(String table, String event, String schema, String filter)` | Listen to Postgres Database changes, you can add multiple of this if you want to track changes form multiple tables |
| `listen()` | Start websocket connection |
| `loop()` | Put this in your loop() function, this will handle the websocket connection and send heartbeats to Supabase |
Expand Down

0 comments on commit 591160a

Please sign in to comment.