NetTalk Central

Author Topic: How do I know if the connection is on?  (Read 2551 times)

jari@softmade.fi

  • Full Member
  • ***
  • Posts: 134
    • View Profile
    • Email
How do I know if the connection is on?
« on: April 24, 2024, 07:41:34 AM »
Hi

I have a website that automatically updates information. If the connection to the web server is interrupted for some reason (e.g., due to an update), I would like the login page to appear. How could this be done?

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: How do I know if the connection is on?
« Reply #1 on: April 25, 2024, 08:48:04 PM »
Hi Jari,

There is no "connection to the web site".

The pattern is
"connect, request, response, disconnect".

>> I have a website that automatically updates information.

I'm not sure what you mean by this. Perhaps you want to elaborate? Like are you using web sockets? Timers? User refreshes page?

>>  If the connection to the web server is interrupted for some reason (e.g., due to an update), I would like the login page to appear.

So the web server is down, because you are doing an update? In that case you can't go to the login page because, well, the web server is down.
If the server is down, but is now up, and you used "save state" then the user won't notice and can continue as before.

I think you might want to include a lot more detail about this post because its really hard to give you useful information with so little context.

Also I presume you are on build 14.21? You didn't think to mention otherwise.

Bruce