golang-nodejs/

directory
v0.5.2-0...-162e27b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2020 License: MIT

README

webrpc golang-nodejs example

  • Server: Go
  • Client: Nodejs (Javascript)

NOTE: please use node v11.9.0 which has the new experimental es module support, so we can just import es6 code as you'd expect to work.

Usage

  1. $ cd client; npm install -- need to install npm modules for node client, we need the node-fetch polyfill
  2. $ make run-server -- in one terminal, to start the Go server
  3. $ make run-client -- in another terminal, to run the Nodejs client to make some RPC calls

Directories

Path Synopsis
example v0.0.1 07d79ad7e0e7bc2320ac29fdd065307ce932cf47 -- This file has been generated by https://github.com/webrpc/webrpc using gen/golang Do not edit by hand.
example v0.0.1 07d79ad7e0e7bc2320ac29fdd065307ce932cf47 -- This file has been generated by https://github.com/webrpc/webrpc using gen/golang Do not edit by hand.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL