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 --ws option to launch web sockets server #182

Open
cblgh opened this issue May 7, 2020 · 1 comment
Open

Add --ws option to launch web sockets server #182

cblgh opened this issue May 7, 2020 · 1 comment

Comments

@cblgh
Copy link
Member

cblgh commented May 7, 2020

@nikolaiwarner's been working on splitting up https://github.com/cabal-club/cabal-desktop/ components so that they can be used in a browser-based cabal application. As far as I know, it currently uses a websocket server to relay messages. (A similar approach to what I've done in https://github.com/cblgh/cabal-crepes/tree/wip-wss)

Since we already use the cli client to seed cabal instances with cabal --seed, I thought it would be excellent to enable an easily launched web socket server in the background, too.

--ws could accept as its argument the port used to host the websocket server.

This would mean that any cabal-cli instance could also easily double as a web socket server for the first version of browser-based clients, afaik @perguth has, together with his company, been wanting a way to use Cabal in a browser without everyone participating needing to host all of the content, so this idea would enable that usecase.

@hackergrrl
Copy link
Member

I really love the idea of the cabal cli being so trivially multipurpose enough for this. 😎

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

No branches or pull requests

2 participants