From 9e569b0316131d516fb0cbf4b13699e232a9fbbc Mon Sep 17 00:00:00 2001 From: Robin Monjo Date: Fri, 21 May 2021 16:15:25 +0200 Subject: [PATCH] add onError on CreateSessionOptions type definition --- types/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/index.d.ts b/types/index.d.ts index b3b764d8..5f969189 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -54,6 +54,7 @@ export interface CreateSessionOptions { sessionId: string; token: string; onStreamsUpdated?: (streams: Stream[]) => void; + onError?: (error: Error) => void; } export interface SessionHelper {