Example #1
0
// ServeRPC serves bsonrpc codec with the default rpc server
func ServeRPC() {
	rpcwrap.ServeRPC(codecName, NewServerCodec)
}
Example #2
0
// ServeRPC serves a json rpc endpoint using default server
func ServeRPC() {
	rpcwrap.ServeRPC("json", oldjson.NewServerCodec)
}