From 5a87fe29353e3fee987a39431df0322d12b575f9 Mon Sep 17 00:00:00 2001 From: Pedro Henrique Date: Tue, 31 May 2022 08:12:35 -0300 Subject: [PATCH] Update websocket.go (#2223) --- client/websocket.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/websocket.go b/client/websocket.go index 58ecbf45dd..906787d301 100644 --- a/client/websocket.go +++ b/client/websocket.go @@ -45,7 +45,7 @@ func (p *Client) Websocket(query string, options ...Option) *Subscription { // Grab a single response from a websocket based query func (p *Client) WebsocketOnce(query string, resp interface{}, options ...Option) error { - sock := p.Websocket(query) + sock := p.Websocket(query, options...) defer sock.Close() return sock.Next(&resp) }