Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: #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
- Loading branch information