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

WebSocket support from client to backend #87

Open
mikesir87 opened this issue Feb 4, 2022 · 2 comments
Open

WebSocket support from client to backend #87

mikesir87 opened this issue Feb 4, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@mikesir87
Copy link
Member

I'm working on a PoC that in which my client will connect to a WebSocket offered by my backend so I can push events to the client. I see various client support for the normal HTTP operations. Any chance we can add a .ws method? It would be nice if the Promise could return the raw WebSocket object, letting me do my own message, onclose, etc. handling.

@rumpl
Copy link
Member

rumpl commented Feb 4, 2022

Hey @mikesir87

Streaming things is kind of a pain between the main process and the renderer process in which the extension is running. You can pass everything over from one to the other. You can see it by the weird API we have for spawn* functions.

That being said I was sure someone would need some kind of streams at one point so I'll continue working/researching this! 👍

@mikesir87
Copy link
Member Author

Awesome! In the meantime, I can simply fall back to polling for the data. Obviously not as preferred, but will certainly do the job.

@benja-M-1 benja-M-1 added the enhancement New feature or request label Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants