Forum BigDB How to test a BigDb connexion

Discussion and help relating to the PlayerIO database solution, BigDB.

How to test a BigDb connexion

Postby defunkt@free.fr » February 6th, 2020, 9:32 am

Hello,
I just want to know if the web connexion is still alive, if not i re-login.

If there a way to test the client for know if i need to re-connect or no ?

THANKS FOR ANSWERS.
defunkt@free.fr
 
Posts: 3
Joined: November 26th, 2014, 5:28 am

Re: How to test a BigDb connexion

Postby Henrik » February 10th, 2020, 9:30 am

Hey Defunkt,

If you've authenticated a user, that client is good for a couple of days without you making any requests. Any time you make a request, it will renew the internal authentication.

If a client has timed out, you will typically get a GameRequired error on every method you try, so if you ever get an error like that anywhere, you know you need to authenticate the user again.
Henrik
.IO
 
Posts: 1880
Joined: January 4th, 2010, 1:53 pm


Return to BigDB



cron