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

WASM support? #5

Open
tmc opened this issue Apr 27, 2021 · 5 comments
Open

WASM support? #5

tmc opened this issue Apr 27, 2021 · 5 comments
Labels
enhancement New feature or request

Comments

@tmc
Copy link

tmc commented Apr 27, 2021

Is it in the cards to have a web socket-based transport for use with WASM projects?

@zeebo
Copy link
Collaborator

zeebo commented Apr 27, 2021

This should be possible. One would just need to write something that maps an incoming websocket to a stream, and then pass that into a handler.

Do you have a Go websocket library you prefer?

@tmc
Copy link
Author

tmc commented Apr 27, 2021

@zeebo zeebo added the enhancement New feature or request label Apr 28, 2021
@zeebo
Copy link
Collaborator

zeebo commented May 3, 2021

I made demo implementations using gorilla/websocket and gobwas/ws and put them in this gist: https://gist.github.com/zeebo/ae635824205088a51031c09cb07ea553

The gobwas/ws code is both a client and a server, and the gorilla/websocket code is just server (but should be able to extend to clients in the same way).

Hopefully they can be used as a starting point for someone (or myself) to pick up. 😄

@zeebo
Copy link
Collaborator

zeebo commented Jul 19, 2021

https://pkg.go.dev/go.bryk.io/pkg/net/drpc/ws is an external websocket based transport to look at as well.

@gedw99
Copy link

gedw99 commented Sep 7, 2021

https://github.com/lightninglabs/falafel is able to use WASM, and InProcess and traditional GRPC

InProcess support: https://github.com/lightninglabs/falafel#description
WASM support : https://github.com/lightninglabs/falafel#generating-jsonwasm-stubs

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