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

Adds support for Pulse #40

Merged
merged 30 commits into from
Jan 25, 2024
Merged

Adds support for Pulse #40

merged 30 commits into from
Jan 25, 2024

Conversation

joedixon
Copy link
Collaborator

@joedixon joedixon commented Jan 23, 2024

scale-card

This pull request adds a pulse card to Reverb for monitoring the number of connections and messages being sent through the server.

To facilitate this, a new MessageSent and MessageReceived event have been introduced which are fired when a message is sent to a connection from the server or when a message is received by the server from the connection.

This has useful side effect of being able to send messages to connections in an event listener.

A new "connections" endpoint has also been introduced which returns a count of all unique users currently connected.

The Messages recorder listens fo the MessageSent and MessageReceived events and keeps track of a count of all messages passing through.

The Connections recorder listens for Pulse's SharedBeat and uses the Pusher SDK to make an authenticated request to the new connections endpoint.

A new card should be added to the dashboard for each app passing the appId to scope the metrics to the correct app.

<x-pulse>
    <livewire:reverb cols="full" appId="123456" />
</x-pulse>

@joedixon joedixon changed the title Feat/pulse Adds support for Pulse Jan 23, 2024
@joedixon joedixon marked this pull request as ready for review January 23, 2024 16:07
@joedixon joedixon changed the base branch from main to taylor January 23, 2024 16:11
@taylorotwell taylorotwell merged commit 781d3b6 into taylor Jan 25, 2024
8 checks passed
@taylorotwell taylorotwell deleted the feat/pulse branch January 25, 2024 17:09
taylorotwell added a commit that referenced this pull request Jan 25, 2024
* service provider work

* formatting

* formatting app provider

* formatting

* formatting

* formatting

* Fix code styling

* formatting

* wip

* Fix code styling

* move files

* Fix code styling

* formatting

* fix autoloading

* fix import

* formatting

* Fix code styling

* formatting

* formatting

* Fix code styling

* formatting

* import class

* Adds support for Pulse (#40)

* wip

* wip

* wip

* wip

* remove dependency

* schedule ingest

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* fix chart update

* listen for received messages

* wip

* wip

* wip

* wip

* formatting

* wip

* fix tests

* wip

* wip

* wip

* wip

* wip

---------

Co-authored-by: taylorotwell <[email protected]>
Co-authored-by: Joe Dixon <[email protected]>
Co-authored-by: Joe Dixon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants