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

client, server, core: Add StreamService interface and TerminalService device #1171

Merged
merged 9 commits into from
Nov 13, 2023

Conversation

bjia56
Copy link
Collaborator

@bjia56 bjia56 commented Nov 11, 2023

  • Add a new StreamService interface to connect bidirectional streams with AsyncGenerators
  • Add a new TerminalService device to core plugin to replace existing server shell functionality
  • Update client, ui to use new TerminalService device over connectRPCObject

common/src/async-queue.ts Outdated Show resolved Hide resolved
}
}

setTimeout(async () => {
Copy link
Owner

Choose a reason for hiding this comment

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

I think I had this setTimeout pattern before due to some weird issue with the event loop on engine.io. I think this can be replaced with an in place

(async() => {
... code
})()

@koush
Copy link
Owner

koush commented Nov 13, 2023

looking good! had a few remaining questions, and remembered that all errors need be caught in the unmonitored promise inside the setTiemout.

@koush koush merged commit 8cb2e15 into koush:main Nov 13, 2023
@bjia56 bjia56 deleted the connectRPCObject-shell branch November 13, 2023 04:21
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