Class SupabaseRealtime.Channel
java.lang.Object
com.codename1.cloud.supabase.SupabaseRealtime.Channel
- Enclosing class:
SupabaseRealtime
A Realtime channel: a set of change listeners joined together.
-
Method Summary
Modifier and TypeMethodDescriptiononPostgresChanges(String event, String schema, String table, String filter, SupabaseRealtime.ChangeListener listener) Listens to database changes.Joins the channel, opening the socket when needed.voidLeaves the channel.
-
Method Details
-
onPostgresChanges
public SupabaseRealtime.Channel onPostgresChanges(String event, String schema, String table, String filter, SupabaseRealtime.ChangeListener listener) Listens to database changes.
Parameters
-
event:INSERT,UPDATE,DELETEor* -
schema: the schema, usuallypublic -
table: the table, or null for every table in the schema -
filter: a row filter such asid=eq.42, or null -
listener: receives the changes
Returns
this channel
-
-
subscribe
Joins the channel, opening the socket when needed.
Returns
this channel
-
unsubscribe
public void unsubscribe()Leaves the channel.
-