stop method
Stops Cobrowse, de-registering the device from the server and closing any open connections. After this method has been called you can no longer start sessions either via the dashboard, or via a 6 digit code, until Cobrowse has been started again.
Throws a PlatformException if the Cobrowse.io SDK cannot be stopped.
Implementation
@override
Future<void> stop() async {
try {
await methodChannel.invokeMethod('stop');
} on PlatformException catch (e) {
print('Cannot stop Cobrowse.io: $e');
rethrow;
}
}