Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REQUEST] Statistic Collection for Dashboard project (link inside) #1109

Open
vesper8 opened this issue Jan 22, 2024 · 0 comments
Open

[REQUEST] Statistic Collection for Dashboard project (link inside) #1109

vesper8 opened this issue Jan 22, 2024 · 0 comments

Comments

@vesper8
Copy link

vesper8 commented Jan 22, 2024

I just discovered this rather nice Soketi dashboard that was recently released

https://github.com/imerfanahmed/dash-soketi.git

It works well enough already but it still has a few things missing. I'd like to improve it and add a live metrics page similar to the one that laravel-websockets uses that shows you events in real time as they're coming in and logs everything to the database.

When running Soketi in debug mode I can see that all the events I'd like to log to the db are very much available and it would only be a better of logging them to mysql, after which I could display them however I want in the dashboard.

I'm unsure of what is the best way to approach this problem. I experimented with the webhooks but that seems to only work for presence channels and doesn't fire anything when I send a private event. Also I imagine it would be quite bad performance-wise.

What would be the best way to log every ws event to mysql that doesn't require using a webhook? Could I build a kind of adapter that would do this? I'm already using the mysql connection to read from an apps table.

Any feedback appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant