In this section, you can get how to install protobuf packages with
and generate typescript code with
Then we will use simple protobuf interface,
to show how to install and generate codes.
Server and client implementation example is here. you can run it locally and test it yourself.
- pbkit/pingpong-server: pingpong server written in Go.
- pbkit/pingpong-client: pingpong client written in Typescript + Preact.
Before running it locally, make sure the server port and client config is set correctly. If you changed port or something else, you have to change counterpart's code because the config is hard-coded.