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

Add request client #342

Merged
merged 11 commits into from
Mar 15, 2023
Merged

Add request client #342

merged 11 commits into from
Mar 15, 2023

Conversation

felicio
Copy link
Collaborator

@felicio felicio commented Feb 10, 2023

No description provided.

packages/status-js/src/preview-client/preview-client.ts Outdated Show resolved Hide resolved
packages/status-js/src/preview-client/preview-client.ts Outdated Show resolved Hide resolved
packages/status-js/src/preview-client/preview-client.ts Outdated Show resolved Hide resolved
packages/status-js/src/preview-client/preview-client.ts Outdated Show resolved Hide resolved
return
}

// todo!: report js-waku abort logic
Copy link
Collaborator Author

@felicio felicio Feb 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since js-waku calls the callback per message concurrently, abort = true from one call most likely won't stop the others.

See https://github.com/waku-org/js-waku/blob/5ca94b1ea3a074e3ad3cd4f2c01b45e8746f9ad5/packages/core/src/lib/store/index.ts#L126-L131.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider using queryGenerator instead in the future.

@felicio felicio mentioned this pull request Feb 13, 2023
@felicio felicio changed the title WIP: Add link preview client Add link preview client Mar 3, 2023
@felicio felicio marked this pull request as ready for review March 3, 2023 09:16
@felicio felicio changed the title Add link preview client Add request client Mar 10, 2023
@felicio felicio requested a review from prichodko March 10, 2023 17:29
Copy link
Collaborator

@prichodko prichodko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm 🚀

packages/status-js/src/request-client/request-client.ts Outdated Show resolved Hide resolved
@felicio felicio merged commit fd372f9 into status-im:main Mar 15, 2023
felicio added a commit to felicio/status-web that referenced this pull request May 15, 2023
* add `preview-client.ts`

* add exports

* fix imports

* set emoji hash

* use `message.timestamp`

* rename `RequestClient`

* drop preview keyword

* rm `appUrl`

* rm todo?:

* remove social urls

* remove if clause
@felicio felicio self-assigned this May 9, 2024
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