Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.
/ grpc-ocaml Public archive
generated from Nymphium/ocaml-nix-template

gRPC-Core wrapper for OCaml

License

Notifications You must be signed in to change notification settings

Nymphium/grpc-ocaml

Repository files navigation

ocaml-grpc

a very-limited gRPC server/client implementation in OCaml

demo

$ direnv allow
$ dune exec example/server.exe &
server.exe: [DEBUG] run gRPC echo server on localhost:20000 ...
$ dune exec example/client.exe
client.exe: [grpc.client] connect
client.exe: [grpc.client] send request
server.exe: [grpc.client] get request /grpc_test.Echo/Greet
server.exe: [DEBUG] request-id: request-id-is-9344
server.exe: [grpc.client] send response
client.exe: [grpc.client] receive response
client.exe: [DEBUG] response: hello
client.exe: [grpc.client] disconnect