Coder Social home page Coder Social logo

ministryofjustice / analytics-platform-websocket-status Goto Github PK

View Code? Open in Web Editor NEW
0.0 9.0 2.0 89 KB

Application we use to check whether websockets are working

License: MIT License

Dockerfile 7.40% HTML 65.66% Python 26.94%
analytics-platform websockets

analytics-platform-websocket-status's Introduction

Web Socket Status Page

Docker Repository on Quay

A quick and dirty tool for checking websockets work

Due to strange network configurations we sometimes see users who can't use jupyter or rstudio/shiny-apps. This is usually because of a problem with their network setup. This is a service we can deploy and point their IT helpdesk to so they can see the problem (because they can't login to the platform)

This will set up a server that sends the current time to any connected websockets once a second and a webpage that will try to connect 25 websockets to that server. The page will display the number of connected sockets and will tell you when all 25 are connected successfully.

Installation and running locally

  • create a virtualenv
  • pip install -r requirements.txt
  • DEBUG=1 python server.py

It will listen on port 8000.

Running in docker

  • docker build . -t websocket-status
  • docker run --rm -it -p 8000:8000 websocket-status

When to use this?

RStudio

If you are getting reports about a user on a corporate network having trouble with either their RStudio Terminal being laggy or non-responsive it's worth asking them to visit the websocket status page. Usually hosted at https://websocket-status.services.alpha.mojanalytics.xyz/ and see if they end up with "25/25 connected"

success

Jupyter

If you are seeing reports of users not being able to execute cells in Jupyter it's also worth getting them to visit the websocket status tool.

jupyter-kernel-status

A symptom of broken websockets is the kernel indicator (the circle next to the Python version in the above image) being black or grey.

License

MIT

analytics-platform-websocket-status's People

Contributors

r4vi avatar rossjones avatar teneightfive avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

analytics-platform-websocket-status's Issues

Default branch is not main

Hi there
The default branch for this repository is not set to main
See repository settings/settings/branches to rename the default branch to main and ensure the Branch protection rules is set to main as well
See the repository standards: https://github.com/ministryofjustice/github-repository-standards
See the report: https://operations-engineering-reports.cloud-platform.service.justice.gov.uk/github_repositories
Please contact Operations Engineering on Slack #ask-operations-engineering, if you need any assistance

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.