EnableAutoReconnect
Maintains the user's session alive by automatically calling the reconnect method upon detecting the expiration of the user's session. Optionally, register a callback using RegisterAutoReconnectCallback to be notified when re-authentication occurs.
Method Parameters
| Parameter | Description |
|---|---|
| enabled | True if auto-reconnect should be enabled |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Roblox
- Cloud Code
- Raw
_bc.EnableAutoReconnect(true);
_bc->enableAutoReconnect(true);
BCCompletionBlock successBlock; // define callback
BCErrorCompletionBlock failureBlock; // define callback
[_bc enableAutoReconnect:true
completionBlock:successBlock
errorCompletionBlock:failureBlock
cbObject:nil];
_bc.enableAutoReconnect(true);
_bc.enableAutoReconnect(true);
_bc.enableAutoReconnect(true);
_bc:enableAutoReconnect(true)
// N/A
// N/A
JSON Response
// N/A