From 8bfd7992ada3ce29b94f4d25a1ee4f711e7442cc Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Wed, 21 Apr 2021 15:47:25 +0100 Subject: [PATCH] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 170f6bf..46f1897 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # M3O Go Client -By default the client connects to api.m3o.com/client +By default the client connects to api.m3o.com ```go package main @@ -35,7 +35,7 @@ func main() { } var rsp Response - if err := c.Call("greeter", "Say.Hello", req, &rsp); err != nil { + if err := c.Call("helloworld", "call", req, &rsp); err != nil { fmt.Println(err) return } @@ -52,7 +52,7 @@ If you want to access your local micro: You can also set the api address explicitly: ```go - c := client.NewClient(client.Options{Address: "https://api.yourdomain.com/client"}) + c := client.NewClient(client.Options{Address: "https://api.yourdomain.com"}) ``` ## Streaming @@ -79,7 +79,7 @@ type Response struct { func main() { c := client.NewClient(&client.Options{Local: true}) - stream, err := c.Stream("example", "Streamer.ServerStream", Request{Count: "10"}) + stream, err := c.Stream("streams", "subscribe", Request{Count: "10"}) if err != nil { fmt.Println(err) return