 Alex ZelenskyandFacebook GitHub Bot
|
016b62c549
|
Add missing ping() method into WebSocket interface (#41071)
Summary:
The `ping()` method seems missing in `WebSocket` interface. The implementation can be found in different places :
https://github.com/facebook/react-native/blob/main/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/websocket/WebSocketModule.java#L323
https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/WebSocket/NativeWebSocketModule.js#L24
https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/WebSocket/WebSocket.js#L209
The change adds missing `ping()` method into `WebSocket` TypeScript interface.
## Changelog:
[GENERAL] [FIXED] - Add missing `ping()` method into `WebSocket` interface
Pull Request resolved: https://github.com/facebook/react-native/pull/41071
Test Plan: Running `yarn test-typescript` and `yarn test-typescript-offline` works with no errors.
Reviewed By: NickGerleman
Differential Revision: D50975349
Pulled By: javache
fbshipit-source-id: fc3d62091f7a1543ac92faa1bd9a804c699f725d
|
2023-11-07 05:34:01 -08:00 |
|