Hello,
I want to get last request time from client.
How can i do that?
Best Regards
Get lastrequest time from client
Re: Get lastrequest time from client
Can you better explain please? Do you mean the time when the last request was sent by the client to the server?
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
Re: Get lastrequest time from client
yes how can i get the last request was sent by the client to the server?
Re: Get lastrequest time from client
On the server side you can do this:
which returns a timestamp in milliseconds.
On the client side there is no such thing. If you need it on the client side, you will need to keep a time variable and update it when you send something.
Code: Select all
long lastReqTime = user.getLastRequestTime();On the client side there is no such thing. If you need it on the client side, you will need to keep a time variable and update it when you send something.