diff --git a/docs/recipes/client-server/fable-remoting.md b/docs/recipes/client-server/fable-remoting.md index b0495edb..c72e8861 100644 --- a/docs/recipes/client-server/fable-remoting.md +++ b/docs/recipes/client-server/fable-remoting.md @@ -59,6 +59,13 @@ let myApi = |> Remoting.buildProxy ``` +> Note: We have made your life easier by creating Metapackages which abstract some of this boilerplate. You can also create the client proxy like so: +> ```fsharp +> open SAFE +> +> let myApi = Api.makeProxy () +> ``` + #### 7. Make calls to the Server Replace the following two lines in the `init` function in `Client.fs`: @@ -74,4 +81,4 @@ let cmd = Cmd.OfAsync.perform myApi.hello () GotHello ``` ## Done! -At this point, the app should work just as it did before. Now, expanding the API and adding a new endpoint is as easy as adding a new field to the API protocol we defined in `Shared.fs`, editing the `myApi` record in `Server.fs` with the implementation, and finally making calls from the proxy. \ No newline at end of file +At this point, the app should work just as it did before. Now, expanding the API and adding a new endpoint is as easy as adding a new field to the API protocol we defined in `Shared.fs`, editing the `myApi` record in `Server.fs` with the implementation, and finally making calls from the proxy.