MCPcopy Create free account
hub / github.com/CPChain/chain / Dial

Function Dial

api/rpc/client.go:157–159  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

155//
156// The client reconnects automatically if the connection is lost.
157func Dial(rawurl string) (*Client, error) {
158 return DialContext(context.Background(), rawurl)
159}
160
161// DialContext creates a new RPC client, just like Dial.
162//

Callers 2

httpTestClientFunction · 0.70
ipcTestClientFunction · 0.70

Calls 1

DialContextFunction · 0.70

Tested by 2

httpTestClientFunction · 0.56
ipcTestClientFunction · 0.56