JS: Format with Prettier v2.4.1 [3/n]

Summary:
Changelog:
[General][Internal]

Reviewed By: zertosh

Differential Revision: D31883447

fbshipit-source-id: cbbf85e4bf935096d242336f41bf0cc5d6f92359
This commit is contained in:
Tim Yung
2021-11-02 22:14:16 -07:00
committed by Facebook GitHub Bot
parent 4e587a1b7d
commit 77ecc7ede1
260 changed files with 1751 additions and 2143 deletions
+4 -4
View File
@@ -142,7 +142,7 @@ const WebSocketInterceptor = {
// Override `connect` method for all RCTWebSocketModule requests
// to intercept the request url, protocols, options and socketId,
// then pass them through the `connectCallback`.
NativeWebSocketModule.connect = function(
NativeWebSocketModule.connect = function (
url,
protocols,
options,
@@ -156,7 +156,7 @@ const WebSocketInterceptor = {
// Override `send` method for all RCTWebSocketModule requests to intercept
// the data sent, then pass them through the `sendCallback`.
NativeWebSocketModule.send = function(data, socketId) {
NativeWebSocketModule.send = function (data, socketId) {
if (sendCallback) {
sendCallback(data, socketId);
}
@@ -165,7 +165,7 @@ const WebSocketInterceptor = {
// Override `sendBinary` method for all RCTWebSocketModule requests to
// intercept the data sent, then pass them through the `sendCallback`.
NativeWebSocketModule.sendBinary = function(data, socketId) {
NativeWebSocketModule.sendBinary = function (data, socketId) {
if (sendCallback) {
sendCallback(WebSocketInterceptor._arrayBufferToString(data), socketId);
}
@@ -174,7 +174,7 @@ const WebSocketInterceptor = {
// Override `close` method for all RCTWebSocketModule requests to intercept
// the close information, then pass them through the `closeCallback`.
NativeWebSocketModule.close = function() {
NativeWebSocketModule.close = function () {
if (closeCallback) {
if (arguments.length === 3) {
closeCallback(arguments[0], arguments[1], arguments[2]);