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
feat: Live Emote Updates for 7TV #4090
Conversation
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.
clang-tidy made some suggestions
There were too many comments to post at once. Showing the first 25 out of 41. Check the log or trigger a new build to see more.
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.
clang-tidy made some suggestions
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.
clang-tidy made some suggestions
4c0d575
to
7e56a76
Compare
7e56a76
to
5aa5832
Compare
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.
clang-tidy made some suggestions
5aa5832
to
6c312d5
Compare
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.
clang-tidy made some suggestions
.github/workflows/test.yml
Outdated
@@ -6,7 +6,7 @@ on: | |||
workflow_dispatch: | |||
|
|||
env: | |||
TWITCH_PUBSUB_SERVER_IMAGE: ghcr.io/chatterino/twitch-pubsub-server-test:v1.0.4 | |||
TWITCH_PUBSUB_SERVER_IMAGE: ghcr.io/chatterino/twitch-pubsub-server-test:master |
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.
Reminder for myself to change to v1.0.5
once we've tested this PR and pushed a new release for the pubsub server test
|
||
std::unordered_set<QString> subscribedEmoteSets_; | ||
std::unordered_set<QString> subscribedUsers_; | ||
std::chrono::milliseconds heartbeatInterval_; |
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.
hearbeatInterval_
can be made const if we end up keeping it. If it's removed and replaced with a defaultHeartbeatInterval
it can just be set in the constructor of the SeventvEventApiClient
instead with a magic value
b6ea764
to
44bb728
Compare
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.
clang-tidy made some suggestions
Make the whole websocket completely optional, would be cool to be able to completely not include it at the compilation process to not bloat the application... |
If the setting is disabled, the class is never instantiated so run-time this is a non-issue. We haven't done compile-time feature flags before, the closest we've gotten to it is enabling/disabling QtKeychain but the file is still there. |
You'd still include websocketpp for PubSub, so you won't save much space: feat/seventv-liveupdates@9ef333d vs master@3303cdc, Qt 5.12.12
This would also mean that CI will need to run 4 additional builds, or 8 for all Qt versions. |
9ef333d
to
d6284a9
Compare
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.
Just some teeny tiny things 👍
This removes the copy constructor which we need in the tests.
d6284a9
to
05e37e0
Compare
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.
clang-tidy made some suggestions
Pull request checklist:
CHANGELOG.md
was updated, if applicableDescription
This PR adds live emote updates (EventApi) for 7TV (see previous PR #4087 and discussion #4038). It's rather large, since it adds building blocks (mainly for adding the messages) for other emote providers.
Tests won't pass until Chatterino/twitch-pubsub-server-test#30 is merged and a new version of the tests is released.