-
Notifications
You must be signed in to change notification settings - Fork 5
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
π (webhid) [NO-ISSUE]: Reconnection fixes #643
Conversation
The latest updates on your projects. Learn more about Vercel for Git βοΈ
1 Skipped Deployment
|
954f302
to
5f18382
Compare
5f18382
to
d1b9fb4
Compare
// const p = new Promise((resolve, reject) => { | ||
// this._pendingApduSubscription = from( | ||
// this._device.sendReport(0, frame.getRawData()), | ||
// ) | ||
// .pipe( | ||
// retry({ | ||
// count: 3, | ||
// delay: 500, | ||
// }), | ||
// ) | ||
// .subscribe({ | ||
// next: resolve, | ||
// error: reject, | ||
// }); | ||
// }); | ||
|
||
// await p; | ||
|
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.
Is this supposed to be uncommented ?
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.
actually it can be removed, we wanted to keep it to try stuff but we'll start later on if it's needed
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.
removed
d1b9fb4
to
a91ab8f
Compare
@@ -38,6 +38,7 @@ export class WebHidDeviceConnection implements DeviceConnection { | |||
private _sendApduSubject: Subject<ApduResponse> = new Subject(); | |||
private readonly _logger: LoggerPublisherService; | |||
private _pendingApdu: Maybe<Uint8Array> = Nothing; | |||
private _pendingApduSubscription: Subscription | null = null; |
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.
This is unused, can be removed I guess
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.
thanks
a91ab8f
to
8c0ddbf
Compare
8c0ddbf
to
d9ec133
Compare
π Description
Make sure to cancel the previous apdusubject in case of full disconnection / reconnection
β Context
β Checklist
Pull Requests must pass CI checks and undergo code review. Set the PR as Draft if it is not yet ready for review.
π§ Checklist for the PR Reviewers