Our client application is using the SocketRocket package to setup the socket connection. Unfortunately there is currently a bug in SocketRocket which results in the Authorization header being always set on all requests.
Nakama is returning a HTTP 401 error due to header being present and being invalid, which is of course the expect behaviour. However, Nakama also doesn’t check the URL parameter for the token since it never reaches that code.
Thanks for the reply. I understand your recommendation to fork SocketRocket and fix it without modifying Nakama. Unfortunately the SocketRocket package is included in a third-party library which can’t be changed by us.
We would like to go for the (temporary) option where we adjust the socket_ws.go file. It’s unclear for us on how to do this when using the Nakama Project Template. How can we place a custom file in the Docker image and re-build Nakama?