This commit is contained in:
Eric Harding committed 2018-04-26 13:44:03 -04:00
1 parent ccef457e41
commit 9929f38f4d
1 file changed
+1 -1
+1 -1
View File
@@ -11,7 +11,7 @@ let init (sc:ServiceContext.ServiceContext) : Model * Cmd<Msg> =
let transform (rpc:HelloService.HelloService) (name:string) =
Cmd.ofPromise
rpc.say_hello
{ new HelloService.HelloRequest with member __.name = "bob" }
{ new HelloService.HelloRequest with member __.name = name }
(fun reply -> RpcResponse reply.message)
(fun _ -> RpcResponse <| "Error: " + name)