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:
committed by
Facebook GitHub Bot
parent
1f2a7f9391
commit
3c73074e29
@@ -247,6 +247,7 @@ export function attachSocketServer(
|
|||||||
}
|
}
|
||||||
|
|
||||||
client.on('close', (code, _reason) => {
|
client.on('close', (code, _reason) => {
|
||||||
|
console.info('[flipper-server] Client close with code', code);
|
||||||
/**
|
/**
|
||||||
* The socket will close as the endpoint is terminating
|
* The socket will close as the endpoint is terminating
|
||||||
* the connection. Status code 1000 and 1001 are used for normal
|
* the connection. Status code 1000 and 1001 are used for normal
|
||||||
|
|||||||
Reference in New Issue
Block a user