Forkbase 0.9.1
Realtime speaks protocol 2.0.0, which supabase-js 2.120 and later ask for by default, beside 1.0.0: apps no longer need realtime: { vsn: "1.0.0" } in…
- Realtime speaks protocol 2.0.0, which supabase-js 2.120 and later ask for by default, beside 1.0.0: apps no longer need
realtime: { vsn: "1.0.0" }increateClient, on the main server or a project's/p/<name>. A socket'svsnpicks its framing: 1.0.0 JSON objects, or 2.0.0 JSON arrays with broadcasts as binary frames (Supabase Realtime's user broadcast frames); novsnis 1.0.0, as before. On 2.0.0 a broadcast's payload can be bytes (ArrayBuffer), delivered as bytes to the other 2.0.0 clients and, as on Supabase, not to 1.0.0 ones. An end-to-end test runs supabase-js with its default options (postgres_changes, broadcast of JSON and of bytes, presence) in both database modes.