check for request ID after receiving it

This commit is contained in:
Anton Kaliaev
2017-09-18 12:02:15 -07:00
committed by Ethan Buchman
parent e36c79f713
commit 7fadde0b37
3 changed files with 14 additions and 3 deletions

View File

@ -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
}