Error: session outgoing queue full

Hello,
In my real-time nakama server game, i send player positions on Update method inside of Unity.
After couple minutes, nakama server broken with this error:
{"level":"error","ts":"zzz","msg":"Failed to route message","uid":"xxx","sid":"xxx","sid":"xxx","error":"session outgoing queue full"
Related source code: https://github.com/heroiclabs/nakama/blob/acffaf09aa0af1b650e7edce2a12a80e67b40d75/server/session_ws.go#L36
Build: WebGL
Any suggestions? Thanks.

I fixed this problem with FixedUpdate method. (Update call : 186, FixedUpdate: 50)

Hi @halukdemir. This is not a “broken” problem with the server. What it means is that the buffer the server maintains for the client device cannot keep up with the number of messages placed into its outgoing message buffer.

You’re sending too many messages from the server to the game client. There’s only so many messages a game device can receive per second. You should be conscious of this data flow in the design of your game.