add sse streaming to sdk

This commit is contained in:
Dax Raad
2025-08-22 18:30:25 -04:00
parent 6e626afdcb
commit 0f1697b2ab
18 changed files with 497 additions and 172 deletions

View File

@@ -123,7 +123,7 @@ class Event extends _HeyApiClient {
* Get events
*/
public subscribe<ThrowOnError extends boolean = false>(options?: Options<EventSubscribeData, ThrowOnError>) {
return (options?.client ?? this._client).get<EventSubscribeResponses, unknown, ThrowOnError>({
return (options?.client ?? this._client).get.sse<EventSubscribeResponses, unknown, ThrowOnError>({
url: "/event",
...options,
})