We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b46a12 commit d906aceCopy full SHA for d906ace
connections.go
@@ -271,7 +271,9 @@ func (conn *connection) readLoop() {
271
if conn.config.Authenticate != nil {
272
user, err := conn.config.Authenticate(data.AuthToken)
273
if err != nil {
274
- conn.SendError(fmt.Errorf("Failed to authenticate user: %v", err))
+ msg := operationMessageForType(gqlConnectionError)
275
+ msg.Payload = fmt.Sprintf("Failed to authenticate user: %v", err)
276
+ conn.outgoing <- msg
277
} else {
278
conn.user = user
279
conn.outgoing <- operationMessageForType(gqlConnectionAck)
0 commit comments