Skip to content

Commit

Permalink
Update websocket.go (#2223)
Browse files Browse the repository at this point in the history
  • Loading branch information
crossworth authored May 31, 2022
1 parent e2edda5 commit 5a87fe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 5a87fe2

Please sign in to comment.