reset static method
EXPERIMENTAL
Resets the state of the underlying native Lightstreamer Client library, ensuring that all active connections are terminated and all existing subscriptions are removed.
When working in an IDE like Visual Studio Code, developers often use hot restart during debugging or iterative development.
This action reloads code changes into the Dart VM and restarts the Flutter app without fully tearing down the native platform state.
By invoking reset()
at app startup, before creating any instances of LightstreamerClient
, you ensure that
the native Lightstreamer Client library is refreshed as if a full app restart occurred,
preserving predictable behavior and preventing inconsistent states across development cycles.
Implementation
static Future<void> reset() {
return NativeBridge.instance.reset();
}