v0.25.2
-
The optional
stopInBackgroundparameter of Server's constructor() now also accepts number (milliseconds) values. IfstopInBackgroundis a number, when app enters into background the automatic server stop does not happen immediately, but it is scheduled for the given time later.BEWARE: The stop in background feature is currently implemented within TypeScript layer of RN, and it behaves differently on different OS. The delayed auto-stop of the server in background does not quite work on Android (as there TS layer stops immediately after the app has moved into background); and it works as intended on iOS, provided a reasonable delay is asked (~1 second works).