You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For websockets, authentication errors in InitFunc, closes the connection with a normal closure (status code: 1000).
However, as defined here, for the ConnectionInit message,
Closing the socket with a close event 4403: Forbidden indicating that the connection request has been denied because of access control. The server has returned false in the onConnect callback.
Closing the socket with a close event 4400: indicating that the connection request has been denied because of an implementation specific error. The server has thrown an error in the onConnect callback, the thrown error's message is the in the close event.
What did you expect?
The ability to specify the close code for connection init i.e either 4403 or 4400 depending on the use-case and the ability to send a custom message. Currently, the string "terminated" is hardcoded in the library.
Minimal graphql.schema and models to reproduce
NA
versions
go run github.com/99designs/gqlgen version? 0.17.5, though the code is the same in the latest version as well
go version? 1.20.4
The text was updated successfully, but these errors were encountered:
What happened?
For websockets, authentication errors in
InitFunc
, closes the connection with a normal closure (status code: 1000).However, as defined here, for the ConnectionInit message,
What did you expect?
The ability to specify the close code for connection init i.e either 4403 or 4400 depending on the use-case and the ability to send a custom message. Currently, the string "terminated" is hardcoded in the library.
Minimal graphql.schema and models to reproduce
NA
versions
go run github.com/99designs/gqlgen version
? 0.17.5, though the code is the same in the latest version as wellgo version
? 1.20.4The text was updated successfully, but these errors were encountered: