-
Notifications
You must be signed in to change notification settings - Fork 26
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
Update websocket relay example app #448
Conversation
1a496ae
to
86af270
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.
Ah yeah, good call! Updated. 👌 |
Where they just missing in package.json I don't see new imports for them in
this PR
Hugo Dias
…On Wed, Nov 22, 2023, 18:23 Brian Ginsburg ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In examples/websocket-relay/relay-app/package.json
<#448 (comment)>:
> + "iso-base": "^2.0.1",
+ "multiformats": "^12.1.3",
multiformats is used for CID when constructing workflows, for example:
https://github.com/ipvm-wg/homestar/blob/73f7955c70a59da43ac936a0e1518d785264eb25/examples/websocket-relay/relay-app/src/lib/workflow.ts#L265-L267
This field reported a type error when attempting to use a string.
iso-base is used for converting the Uint8array in a receipt to base64:
https://github.com/ipvm-wg/homestar/blob/73f7955c70a59da43ac936a0e1518d785264eb25/examples/websocket-relay/relay-app/src/lib/workflow.ts#L233
—
Reply to this email directly, view it on GitHub
<#448 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACMWTRDNO3FT2OL44IE2IDYFY7LTAVCNFSM6AAAAAA7VGONZKVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTONBVGA4DINZXHA>
.
You are receiving this because your review was requested.Message ID:
***@***.***>
|
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.
left some notes inline, will do some improvements to the client to help here and release a new version
@bgins this all looks great. One minor change maybe. Since we have the option to not pass settings anymore, and we don't really use it in the example, can we update to go that direction for the example (as easy as possible?)? |
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.
Generally approved, but had one minor ask.
const data = await event.data.text(); | ||
|
||
export async function handleMessage( | ||
data: MaybeResult<WorkflowNotification, WorkflowNotificationError> |
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.
MaybeResult
is nice +1.
Co-authored-by: Hugo Dias <[email protected]> Signed-off-by: Brian Ginsburg <[email protected]>
d486c1d
to
dd4d367
Compare
Yeah, good idea! Added that. |
This PR implements the following changes: - [x] Update example to use Homestar client: https://www.npmjs.com/package/@fission-codes/homestar - [x] Remove emulation mode Implements #390 - [x] Refactor (non-breaking change that updates existing functionality) The example should be tested manually to verify it works. --------- Signed-off-by: Brian Ginsburg <[email protected]> Co-authored-by: Hugo Dias <[email protected]>
Description
This PR implements the following changes:
Link to issue
Implements #390
Type of change
Test plan (required)
The example should be tested manually to verify it works.