diff --git a/packages/react-native/types/modules/globals.d.ts b/packages/react-native/types/modules/globals.d.ts index af112c7698aec5..51272890300db7 100644 --- a/packages/react-native/types/modules/globals.d.ts +++ b/packages/react-native/types/modules/globals.d.ts @@ -460,6 +460,7 @@ interface WebSocket extends EventTarget { readonly readyState: number; send(data: string | ArrayBuffer | ArrayBufferView | Blob): void; close(code?: number, reason?: string): void; + ping(): void; onopen: (() => void) | null; onmessage: ((event: WebSocketMessageEvent) => void) | null; onerror: ((event: WebSocketErrorEvent) => void) | null;