-
Notifications
You must be signed in to change notification settings - Fork 18
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
Use EventSub instead of Filter/Watch. #89
Use EventSub instead of Filter/Watch. #89
Conversation
cf1600c
to
d4e6825
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.
The integration is a bit more complex than I hoped.
Couldn't we just use sub.Read without using sub.ReadPast in many cases?
Hardcoding the event name is not good practice.
d4e6825
to
946ef50
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.
Please address the linter warning. It's easy to fix. For one of them I already added a commit.
There is probably a bug in ensureConcluded
. What if the first event is not the Concluded event?
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.
LGTM
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
This will be needed for the generic EventSub which can only be closed once. It also means that a Subscription can not be copied anymore. Signed-off-by: Oliver Tale-Yazdi <[email protected]>
This field and function is unused. Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
eed0f33
to
bbdd18c
Compare
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Signed-off-by: Oliver Tale-Yazdi <[email protected]>
bbdd18c
to
69ab9e0
Compare
Closes #84