Remove WebSocket GK

Summary:
This change removes the usage of a GK to open WebSocket ports.

The WebSocket ports have been open for quite a while to all members of the Flipper Support Group. OSS users will now open the ports as well.

Reviewed By: mweststrate

Differential Revision: D32244706

fbshipit-source-id: e441dfd43c51dda26f259ae7d7ebc3d721cc1c99
This commit is contained in:
Lorenzo Blasa
2021-11-08 04:34:35 -08:00
committed by Facebook GitHub Bot
parent d33041cd9e
commit e5bc40c59f

View File

@@ -127,36 +127,32 @@ class ServerController extends EventEmitter implements ServerEventsListener {
.then((options) => { .then((options) => {
console.info('[conn] secure server listening at port: ', secure); console.info('[conn] secure server listening at port: ', secure);
this.secureServer = createServer(secure, this, options); this.secureServer = createServer(secure, this, options);
if (GK.get('flipper_websocket_server')) { const {secure: altSecure} = getServerPortsConfig().altServerPorts;
const {secure: altSecure} = getServerPortsConfig().altServerPorts; console.info(
console.info( '[conn] secure server (ws) listening at port: ',
'[conn] secure server (ws) listening at port: ', altSecure,
altSecure, );
); this.altSecureServer = createServer(
this.altSecureServer = createServer( altSecure,
altSecure, this,
this, options,
options, TransportType.WebSocket,
TransportType.WebSocket, );
);
}
}) })
.then(() => { .then(() => {
console.info('[conn] insecure server listening at port: ', insecure); console.info('[conn] insecure server listening at port: ', insecure);
this.insecureServer = createServer(insecure, this); this.insecureServer = createServer(insecure, this);
if (GK.get('flipper_websocket_server')) { const {insecure: altInsecure} = getServerPortsConfig().altServerPorts;
const {insecure: altInsecure} = getServerPortsConfig().altServerPorts; console.info(
console.info( '[conn] insecure server (ws) listening at port: ',
'[conn] insecure server (ws) listening at port: ', altInsecure,
altInsecure, );
); this.altInsecureServer = createServer(
this.altInsecureServer = createServer( altInsecure,
altInsecure, this,
this, undefined,
undefined, TransportType.WebSocket,
TransportType.WebSocket, );
);
}
return; return;
}); });