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
This commit is contained in:
Wojtek Czekalski
2020-01-21 09:48:59 -08:00
committed by Ben Lichtman
parent 070fa8d410
commit be840b6e1d
+4
View File
@@ -305,4 +305,8 @@ declare var WebSocket: {
[optionName: string]: any;
} | null,
): WebSocket;
readonly CLOSED: number;
readonly CLOSING: number;
readonly CONNECTING: number;
readonly OPEN: number;
};