|
|
@ -195,7 +195,7 @@ func (c *WSClient) Send(ctx context.Context, request types.RPCRequest) error { |
|
|
|
|
|
|
|
// Call the given method. See Send description.
|
|
|
|
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 { |
|
|
|
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
|
|
|
|
// Send description.
|
|
|
|
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 { |
|
|
|
return err |
|
|
|
} |
|
|
|