mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-14 07:26:47 +00:00
Report error to websocket client if they do an unauthorised request
This commit is contained in:
@@ -176,6 +176,7 @@ func (c *WebsocketClient) read() {
|
||||
|
||||
if result.authRequired && !c.Authenticated {
|
||||
log.Printf("Websocket: request %s failed due to unauthenticated request on an authenticated API", evt.Event)
|
||||
c.SendWebsocketMessage(WebsocketEventResponse{Event: evt.Event, Error: "unauthorised request on authenticated API"})
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user