Dial creates a new client for the given URL. The currently supported URL schemes are "http", "https", "ws" and "wss". If rawurl is a file name with no URL scheme, a local socket connection is established using UNIX domain sockets on supported platforms and named pipes on Windows. If you want to con
(rawurl string)
| 155 | // |
| 156 | // The client reconnects automatically if the connection is lost. |
| 157 | func Dial(rawurl string) (*Client, error) { |
| 158 | return DialContext(context.Background(), rawurl) |
| 159 | } |
| 160 | |
| 161 | // DialContext creates a new RPC client, just like Dial. |
| 162 | // |