Closed cc-steina closed 1 year ago
When a server crashes the client is connected to the app will shutdown with a fatal error.
Steps to reproduce the behavior:
Or code:
const currentClient = new net.Socket(); let client: ClientConnection | undefined; client.on('connect', () => { onClientConnected!(); }); client.on('data', (data) => { if (typeof data === 'string') { onServerMessage!(data); } else { onServerMessage!(data.toString()); } }); client.on('drain', () => { onClientDrain!(); }); client.on('error', (error) => { onClientError!(error); }); client.on('close', (error) => { onClientDisconnected!(error); });
Client Connection call:
await client.connect( { port: 8090, host: host, reuseAddress: true, }, () => { onClientConnected(client); } );
Android App crashes when server is unexpectedly shutting down
The android app should get an error somewhere that will allow handeling and not crash the entire app.
Screenshots Error caught on the client phone after Server crashes
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community attention? This issue may be closed if no further activity occurs.
Description
When a server crashes the client is connected to the app will shutdown with a fatal error.
Steps to reproduce
Steps to reproduce the behavior:
Or code:
Client Connection call:
Current behavior
Android App crashes when server is unexpectedly shutting down
Expected behavior
The android app should get an error somewhere that will allow handeling and not crash the entire app.
Screenshots Error caught on the client phone after Server crashes
Relevant information