Open

Description
there is a pure webrtc golang impl here:https://github.com/pions/webrtc
SO i was thinking its maybe possible to do GRPC over Webrtc.
This could then allow p2p style architecture.
it woudl be usable for server to server and server to browser, Or server to desktop client.
So sort of one network transport for everything and GRPC for everything.
what do you think ? I am not sure it will work but its a metetr of trying i suspect.
BTW was very easy to get going and everything works immediatly.
I make it all into a Makefile so no reliance on bash files:
LIB=github.com/dennwc/dom
LIB_FSPATH=${GOPATH}/src/$(LIB)
WASM_FILES="$(GOROOT)/misc/wasm"
GRPC=${LIB_FSPATH}/examples/grpc-over-ws
dep:
go get -u github.com/dennwc/dom
go install github.com/dennwc/dom/cmd/wasm-server
open:
code ${LIB_FSPATH}
##
run:
cd ${GOPATH}/src/github.com/dennwc/dom && wasm-server
run-ex-grpc:
cd $(GRPC) && GOOS=js GOARCH=wasm go build -o client.wasm ./client.go
cd $(GRPC) && cp ${WASM_FILES}/wasm_exec.js ./
cd $(GRPC) && go run ./server.go
Metadata
Metadata
Assignees
Labels
No labels