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

Update websocket relay example app #448

Merged
merged 8 commits into from
Nov 28, 2023
Merged

Update websocket relay example app #448

merged 8 commits into from
Nov 28, 2023

Conversation

bgins
Copy link
Contributor

@bgins bgins commented Nov 21, 2023

Description

This PR implements the following changes:

Link to issue

Implements #390

Type of change

  • Refactor (non-breaking change that updates existing functionality)

Test plan (required)

The example should be tested manually to verify it works.

@bgins bgins force-pushed the bgins/update-examples branch from 1a496ae to 86af270 Compare November 21, 2023 21:02
@bgins bgins marked this pull request as ready for review November 21, 2023 21:05
@bgins bgins requested a review from a team as a code owner November 21, 2023 21:05
Copy link
Member

@avivash avivash left a comment

Choose a reason for hiding this comment

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

LGTM! One small thing: there are a couple low severity npm audit issues that can be resolved with npm audit fix

image

@bgins
Copy link
Contributor Author

bgins commented Nov 21, 2023

there are a couple low severity npm audit issues that can be resolved with npm audit fix

Ah yeah, good call! Updated. 👌

@hugomrdias
Copy link
Member

hugomrdias commented Nov 22, 2023 via email

Copy link
Member

@hugomrdias hugomrdias left a 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

@zeeshanlakhani
Copy link
Contributor

@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?)?

Copy link
Contributor

@zeeshanlakhani zeeshanlakhani left a 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>
Copy link
Contributor

Choose a reason for hiding this comment

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

MaybeResult is nice +1.

@bgins bgins force-pushed the bgins/update-examples branch from d486c1d to dd4d367 Compare November 28, 2023 16:54
@bgins
Copy link
Contributor Author

bgins commented Nov 28, 2023

@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?)?

Yeah, good idea! Added that.

@bgins bgins merged commit 1c823b8 into zl/jsonrpc Nov 28, 2023
23 checks passed
@bgins bgins deleted the bgins/update-examples branch November 28, 2023 17:18
zeeshanlakhani pushed a commit that referenced this pull request Nov 29, 2023
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]>
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.

4 participants