WebRPCPeer instance is returned, which exposes the API interface I
for making outgoing method calls.
WebRPCPeer!I connectWebRPC(I)(URL url, I implementation, const(HTTPClientSettings) settings = defaultSettings) if (is(I == interface))Connects to a WebRPC endpoint.
This will perform a HTTP GET request to the supplied url and attempts to establish a WebSocket connection for bi-directional communication. Incoming method calls will be forwarded to implementation.
url | URL of the endpoint to connect to |
implementation | The API implementation to invoke for incoming method calls |
settings | HTTP client settings to use |
WebRPCPeer instance is returned, which exposes the API interface I
for making outgoing method calls.