From 51ba8e79c8a9d48d4918eea9242da2f0e37bda4a Mon Sep 17 00:00:00 2001 From: Aritra Date: Wed, 19 Jul 2023 13:41:16 +0530 Subject: [PATCH] fix: wsProtocols should take string|string[] --- README.md | 2 +- src/lib/VncScreen.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2493940..33209a4 100644 --- a/README.md +++ b/README.md @@ -172,7 +172,7 @@ interface RFBOptions { target?: string; }; repeaterID: string; - wsProtocols: string; + wsProtocols: string | string[]; } ``` diff --git a/src/lib/VncScreen.tsx b/src/lib/VncScreen.tsx index 5254140..af032d9 100644 --- a/src/lib/VncScreen.tsx +++ b/src/lib/VncScreen.tsx @@ -15,7 +15,7 @@ export interface RFBOptions { target?: string; }; repeaterID: string; - wsProtocols: string; + wsProtocols: string | string[]; } export interface Props {