Log client disconnect code

Summary: Useful to troubleshoot client disconnections

Reviewed By: antonk52

Differential Revision: D49828632

fbshipit-source-id: 55c7d9e212637cac73bf64e6f3e7516778036015
This commit is contained in:
Lorenzo Blasa
2023-10-02 08:52:40 -07:00
committed by Facebook GitHub Bot
parent 1f2a7f9391
commit 3c73074e29

View File

@@ -247,6 +247,7 @@ export function attachSocketServer(
}
client.on('close', (code, _reason) => {
console.info('[flipper-server] Client close with code', code);
/**
* The socket will close as the endpoint is terminating
* the connection. Status code 1000 and 1001 are used for normal