This repository was archived by the owner on Apr 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
Add replicant with last events to streamelement service #494
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hlxid
added a commit
that referenced
this pull request
Mar 2, 2022
`tsconfig.json` matched *all* tsconfig.json files but it was only meant for the tsconfig in the repository root. Stumbled on this when I was adding tsconfigs for #494.
hlxid
added a commit
that referenced
this pull request
Mar 2, 2022
`tsconfig.json` matched *all* tsconfig.json files but it was only meant for the tsconfig in the repository root. Stumbled on this when I was adding tsconfigs for #494.
cd78ea8
to
b42e44d
Compare
hlxid
added a commit
to codeoverflow-org/nodecg-io-docs
that referenced
this pull request
Jun 20, 2022
Adds documentation on usage of service replicants like the streamelements replicant that is added in codeoverflow-org/nodecg-io#494.
sebinside
approved these changes
Jul 3, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really like this approach regarding our discussion in #65 (I would even propose that this example could close that issue, too). The stream elements service is a good choice and the example is easy to understand and follow, regarding replicant usage and overall low-code possibilities with nodecg-io.
hlxid
added a commit
to codeoverflow-org/nodecg-io-docs
that referenced
this pull request
Jul 16, 2022
Adds documentation on usage of service replicants like the streamelements replicant that is added in codeoverflow-org/nodecg-io#494.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is my take on replicants (#65) that I've shared on Discord before.
The bundle that wants a replicant creates it in the extension of the bundle and then calls a method on the service client that sets up handlers to feed data into it. That way the replicant is declared in the context of the bundle using the service, the name of the replicant is freely choosable and, most important, static.
To start I've added a replicant to the streamelements service that contains the last sub, last follow, last tip, etc. To show how the replicant can be used I've added a simple graphic to the
streamelements-events
sample bundle that gets the data from the replicant and displays it using vue.TODO:
More replicants to other services should be added in followup PRs.