You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
Currently there's no built in way to do it as far as I know. You may have to write the event store logic manually in the metrics driver. I have showed some stats in dashboard by parsing prometheus metrics.
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!
The text was updated successfully, but these errors were encountered: