Use HTTP shutdown instead

Summary: Use the newly exposed HTTP shutdown API. It is simpler.

Reviewed By: antonk52

Differential Revision: D49499264

fbshipit-source-id: 2d81db1d1a66c0b7550ee1245e51d8f1a8671aa6
This commit is contained in:
Lorenzo Blasa
2023-09-21 06:59:22 -07:00
committed by Facebook GitHub Bot
parent 6df27824b7
commit b856180530
3 changed files with 24 additions and 64 deletions

View File

@@ -151,7 +151,7 @@ async function startHTTPServer(config: Config): Promise<{
const socket = attachWS(server, config);
exitHook(() => {
console.log('Shutdown server');
console.log('[flipper-server] Shutdown HTTP server');
server.close();
});