DarkTank2 / pff_service_system_v4

0 stars 0 forks source link

Connectivity #1

Closed DarkTank2 closed 1 year ago

DarkTank2 commented 2 years ago

Currently after locking the screen of a mobile device, the websocket-connection is lost at some point. After unlocking the screen and adding items to an order and sending the order o the backend, the order is lost since the connection is dead. Possible fix: Cyclic check if the connection is still valid, if not prevent sending. If an order is lost, it should not be a problem since it will be buffered and sent to the backend after reconnection (https://socket.io/docs/v4/client-options/#reconnection and https://socket.io/docs/v3/client-offline-behavior/). Maybe add an additional connect button for the user to re-validate the connection.

DarkTank2 commented 1 year ago

Split applications into two different one, mobile application configured with REST (timed polling), stationary application configured with socket-io

DarkTank2 commented 1 year ago

connectivity bug fixed by changing connectivity to REST/axios, split of app is referenced in issue #15 as an enhancement for further versions