mrbrianevans / companies-house-stream Goto Github PK
View Code? Open in Web Editor NEWStream events from companies house in real time
Home Page: https://companies.stream
License: MIT License
Stream events from companies house in real time
Home Page: https://companies.stream
License: MIT License
FYI
There's been a change to the streaming API - https://forum.aws.chdev.org/t/streaming-api-concurrent-connections/4912
As your code connects to all 6 at once, it will cause problems :(
At the moment it only shows the basic company data stream.
Add in the PSC stream, and any others that are available.
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.
Each type of event is a different shape.
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
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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.