|
@ -195,7 +195,7 @@ func (c *WSClient) Send(ctx context.Context, request types.RPCRequest) error { |
|
|
|
|
|
|
|
|
// Call the given method. See Send description.
|
|
|
// Call the given method. See Send description.
|
|
|
func (c *WSClient) Call(ctx context.Context, method string, params map[string]interface{}) error { |
|
|
func (c *WSClient) Call(ctx context.Context, method string, params map[string]interface{}) error { |
|
|
request, err := types.MapToRequest("", method, params) |
|
|
|
|
|
|
|
|
request, err := types.MapToRequest("ws-client", method, params) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return err |
|
|
return err |
|
|
} |
|
|
} |
|
@ -205,7 +205,7 @@ func (c *WSClient) Call(ctx context.Context, method string, params map[string]in |
|
|
// CallWithArrayParams the given method with params in a form of array. See
|
|
|
// CallWithArrayParams the given method with params in a form of array. See
|
|
|
// Send description.
|
|
|
// Send description.
|
|
|
func (c *WSClient) CallWithArrayParams(ctx context.Context, method string, params []interface{}) error { |
|
|
func (c *WSClient) CallWithArrayParams(ctx context.Context, method string, params []interface{}) error { |
|
|
request, err := types.ArrayToRequest("", method, params) |
|
|
|
|
|
|
|
|
request, err := types.ArrayToRequest("ws-client", method, params) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return err |
|
|
return err |
|
|
} |
|
|
} |
|
|