Skip to content

Commit

Permalink
fix nil pointer execption
Browse files Browse the repository at this point in the history
  • Loading branch information
zreigz committed Dec 11, 2023
1 parent a09afb6 commit 96808d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/websocket/socket.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ func New(clusterId, consoleUrl, deployToken string, publisher Publisher) (*Socke
if err != nil {
return nil, err
}

err = client.Connect(*uri, http.Header{})
socket.client = client
err = client.Connect(*uri, http.Header{})

return socket, err
}

Expand Down

0 comments on commit 96808d4

Please sign in to comment.