switch to websockets, remove grpc dependency

This commit is contained in:
David Zhao
2020-11-03 00:20:46 -08:00
parent a2efaccdde
commit 925d1c653e
15 changed files with 934 additions and 1068 deletions
+3 -5
View File
@@ -31,10 +31,8 @@ proto: protoc protoc-gen-go twirp-gen
--plugin=$(PROTOC_GEN_GO) \
-I=proto \
proto/room.proto proto/model.proto ;\
protoc --go_out=$(GO_TARGET) --go-grpc_out=$(GO_TARGET) \
protoc --go_out=$(GO_TARGET) \
--go_opt=paths=source_relative \
--go-grpc_opt=paths=source_relative \
--plugin=$(PROTOC_GEN_GO) \
-I=proto \
proto/rtc.proto ;\
}
@@ -45,10 +43,10 @@ ifeq (, $(shell which protoc))
endif
protoc-gen-go:
ifeq (, $(shell which protoc-gen-go-grpc))
ifeq (, $(shell which protoc-gen-go))
@{ \
echo "installing go protobuf plugin" ;\
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc ;\
go install google.golang.org/protobuf/cmd/protoc-gen-go ;\
}
endif