Git Product home page Git Product logo

companies-house-stream's People

Contributors

mrbrianevans avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

companies-house-stream's Issues

Add other streams

At the moment it only shows the basic company data stream.

Add in the PSC stream, and any others that are available.

Filter and rate limit for users

It would be good to allow the user to filter certain types of events and limit the rate at which they are shown.

For example, only display new company registrations at a maximum speed of 1 new company per second.

Cannot parse two consecutive events without newline

Sometimes, companies house servers send two JSON events in a single chunk, without a newline separator. The current JSON parser only looks for a newline character to separate on, but should also look for }}{ to pick up two events from the same chunk.

Maybe a regular expression like }}\s*{ to allow for some, or zero whitespace

Migrate server to use Bun

https://bun.sh/docs/api/websockets

Bun offers very good websocket performance.
It also offers pub/sub topics which could potentially be used to replace the current setup of keeping an array of client listeners.

Migrating to Bun also removes the need for typescript compilation as Bun can run .ts files.

Not mobile friendly

View window has not been set so the mobile experience is terrible.

It should have only one notification on a line (100% width) for mobile devices.

Duplicate connections

When the disconnect/connect button is pressed, it increases the number of connections each time, so the client receives multiple duplicate events each time an event is emitted from the server

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.