Coder Social home page Coder Social logo

Comments (9)

GreatWizard avatar GreatWizard commented on June 2, 2024 1

You are on a node server, I guess you are using a clone of the github repo in order to run your server?
Can you check that you are up-to-date with github? and rebuild the typescript into JS in order to have the last changes.

I made a fix october 2018 (CORS support) in order to have ping working on the node server: https://github.com/spacemeowx2/switch-lan-play/commits/master/server It's quite old.

from lan-play-status.

GreatWizard avatar GreatWizard commented on June 2, 2024 1

I have no idea what is in the docker image. it's probably quite old.
If you are updating your server, if I were you, I will go on the rust server which is maintained by spacemeowx2 and have better performance >
https://github.com/spacemeowx2/slp-server-rust#usage

from lan-play-status.

GreatWizard avatar GreatWizard commented on June 2, 2024

Hello,

Ping is not performed by the ICPM protocol.

There are 2 situations:

  • node / dotnet server: when we obtain the data by API, then we compute the duration to do the request and we apply a time correction (due to the serialization / deserialization of the data by the browser)
  • server rust, we use the same principle but being connected in websocket to the graphql server embedded with the server (no time correction on this case)

You don't have to configure anything to let the PING computed correctly.

There are issues with CORS on HTTPS, that why we redirect HTTPS onto HTTP by default.
It's a read-only website so there is no risk to not use a secure connection.


About the uptime, that can be more complicated because I need ot setup a cron check and store data somewhere. It's a bit out the scope of the current generated static website.
But that can be done pretty easily.
I wonder if there is a good (and free 🤞) web-service to store statistic data?
I can setup a cron to check status on my server.

from lan-play-status.

GreatWizard avatar GreatWizard commented on June 2, 2024

About uptime, I'm giving a try to uptimerobot.com
I seems to do the job well. I will work on an integration this week

from lan-play-status.

drizuid avatar drizuid commented on June 2, 2024

hey, thanks for the reply! Makes a lot of sense. I just panicked a little when i saw some nodejs nodes showing latency and not mine :D my rust shows it fine and i think most users are preferring the rust server anyway.

uptime robot looks super cool. I actually use statping (in a docker container) and have it report to discord when a service fails the check. While I imagine you could leverage the data on your site, i think uptimerobot may be a better fit?

Anyway, if you're not using this to link to a PR, please feel free to close it, i think you answered all of my questions quite well! thanks for all you do!

from lan-play-status.

GreatWizard avatar GreatWizard commented on June 2, 2024

I setup uptimerobot and it seems quite nice :)
Let's see on the long terms but right now the uptime ratio is on the website ;)

from lan-play-status.

nodakamakadon avatar nodakamakadon commented on June 2, 2024

auslanplay.ddns.net:11451 is not showing a ping on the site. What can I do to fix this?

from lan-play-status.

nodakamakadon avatar nodakamakadon commented on June 2, 2024

I'm using the Docker container (spacemeowx2/switch-lan-play). Will it be updated or should I go to compiling it?

from lan-play-status.

nodakamakadon avatar nodakamakadon commented on June 2, 2024

Alrighty, I'll do that. Thanks :)

from lan-play-status.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.