diff --git a/packages/functions_client/lib/src/functions_client.dart b/packages/functions_client/lib/src/functions_client.dart index fd2cc8cf..97926f50 100644 --- a/packages/functions_client/lib/src/functions_client.dart +++ b/packages/functions_client/lib/src/functions_client.dart @@ -57,6 +57,16 @@ class FunctionsClient { /// print(val); /// }); /// ``` + /// To stream SSE on the web, you can use a custom HTTP client that is + /// able to handle SSE such as [fetch_client](https://pub.dev/packages/fetch_client). + /// ```dart + /// final fetchClient = FetchClient(mode: RequestMode.cors); + /// await Supabase.initialize( + /// url: supabaseUrl, + /// anonKey: supabaseKey, + /// httpClient: fetchClient, + /// ); + /// ``` Future invoke( String functionName, { Map? headers,