From be840b6e1d5b101420c4e2fdc3e015a0f0908b92 Mon Sep 17 00:00:00 2001 From: Wojtek Czekalski Date: Tue, 21 Jan 2020 18:48:59 +0100 Subject: [PATCH] react-native: Add WebSocket ready state constants (#41637) As defined in the React Native repo. https://github.com/facebook/react-native/blob/master/Libraries/WebSocket/WebSocket.js#L59-L67 --- types/react-native/globals.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/types/react-native/globals.d.ts b/types/react-native/globals.d.ts index 334acdff57..ca20d9e342 100644 --- a/types/react-native/globals.d.ts +++ b/types/react-native/globals.d.ts @@ -305,4 +305,8 @@ declare var WebSocket: { [optionName: string]: any; } | null, ): WebSocket; + readonly CLOSED: number; + readonly CLOSING: number; + readonly CONNECTING: number; + readonly OPEN: number; };