From a3dbf35cb085f06d30ddebd988d7a451931e5f89 Mon Sep 17 00:00:00 2001 From: Michael Heap Date: Mon, 22 Mar 2021 09:51:04 +0000 Subject: [PATCH 1/2] github-default-branch: Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 41b78f85..6ee5c9fc 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # opentok-react -[![npm version](https://badge.fury.io/js/opentok-react.svg)](https://badge.fury.io/js/opentok-react) [![Build Status](https://travis-ci.org/opentok/opentok-react.svg?branch=master)](https://travis-ci.org/opentok/opentok-react) +[![npm version](https://badge.fury.io/js/opentok-react.svg)](https://badge.fury.io/js/opentok-react) [![Build Status](https://travis-ci.org/opentok/opentok-react.svg?branch=main)](https://travis-ci.org/opentok/opentok-react) React components for OpenTok.js From a2d391fe6c391576bee6906361a0a0440a9791a7 Mon Sep 17 00:00:00 2001 From: Taqi Mustafa Date: Sun, 20 Jun 2021 01:40:50 +0500 Subject: [PATCH 2/2] Session options type Added session options type (https://github.com/opentok/opentok-react/pull/98) --- types/index.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index b3b764d8..47e1dc62 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -1,5 +1,5 @@ import React from 'react'; -import { Session, Error, PublisherProperties, Stream, SubscriberProperties, PublisherEventHandlers, SessionEventHandlers, SubscriberEventHandlers, Subscriber, Publisher } from './opentok'; +import { Session, Error, PublisherProperties, Stream, SubscriberProperties, PublisherEventHandlers, SessionEventHandlers, SubscriberEventHandlers, Subscriber, Publisher, SessionInitOptions } from './opentok'; export interface OTPublisherRef { getPublisher(): Publisher; @@ -22,6 +22,7 @@ export interface OTSessionProps { eventHandlers?: SessionEventHandlers; onConnect?: () => void; onError?: (error: Error) => void; + options?: SessionInitOptions; } export interface OTStreamsProps { @@ -69,4 +70,4 @@ export interface PreloadScriptProps { opentokClientUrl?: string; } -export function preloadScript(component: React.ComponentType): React.ComponentType; \ No newline at end of file +export function preloadScript(component: React.ComponentType): React.ComponentType;