mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Make RCTWebSocketModule TurboModule-compatible
Summary: Changelog: [iOS][Added] - Make RCTWebSocketModule TurboModule-compatible Reviewed By: PeteTheHeat Differential Revision: D18353766 fbshipit-source-id: fde0f6593dd203ab3dcb8f9cf40012ba4761d6ba
This commit is contained in:
committed by
Facebook Github Bot
parent
1b2992e8b3
commit
d73ae1baa3
@@ -4,7 +4,7 @@
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @flow strict-local
|
||||
* @flow
|
||||
* @format
|
||||
*/
|
||||
|
||||
@@ -17,11 +17,11 @@ export interface Spec extends TurboModule {
|
||||
+connect: (
|
||||
url: string,
|
||||
protocols: ?Array<string>,
|
||||
options: ?{headers?: {origin?: string}},
|
||||
options: {|headers?: Object|},
|
||||
socketID: number,
|
||||
) => void;
|
||||
+send: (message: string, socketID: number) => void;
|
||||
+sendBinary: (base64String: string, socketID: number) => void;
|
||||
+send: (message: string, forSocketID: number) => void;
|
||||
+sendBinary: (base64String: string, forSocketID: number) => void;
|
||||
+ping: (socketID: number) => void;
|
||||
+close: (code: number, reason: string, socketID: number) => void;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user