opentok/opentok-react

CreateSessionOptions definition is missing onError & onConnect & options

Opened this issue · 1 comments

createSession function:

export default function createSession({ apiKey, sessionId, token, onStreamsUpdated, onConnect, onError, options, } = {})

CreateSessionOptions from types:

export interface CreateSessionOptions { apiKey: string; sessionId: string; token: string; onStreamsUpdated?: (streams: Stream[]) => void; }

Having this issue also.