GetServerStatus
public BackendReturnObject GetServerStatus();
Description
The status of the project registered to BACKND Console > Server Settings > Project Status is looked up.
Example
Synchronous
Backend.Utils.GetServerStatus();
Asynchronous
Backend.Utils.GetServerStatus((callback) =>
{
// Post-process
});
SendQueue
SendQueue.Enqueue(Backend.Utils.GetServerStatus, (callback) =>
{
// Post-process
});
Return cases
Success cases
When the lookup is successful
statusCode : 200
returnValue : refer to GetReturnValuetoJSON
GetReturnValuetoJSON
{
"serverStatus" : 1
}
serverStatus | Description |
---|---|
0 | Online |
1 | Offline |
2 | Maintenance |