Hi, just getting started with this. We're building a voice call feature with an AI, and as part of it, we send audio from client side, then there's a pretty significant pause in the middle. During this pause of AI inference we use keepalive and it keeps the socket open. Afterwards, we resume sending audio when it's the user turn, but I'm finding that upon sending 4 buffers (and exactly 4) to the socket after this pause, the socket would close (gracefully) on me for no apparent reason.
Why does this happen? Does it require a continuous stream, it doesn't seem so because if it did there wouldn't need to be the keepalive functionality. I wonder if it's something wrong with its timestamping, or if it's having trouble making sense of the silence or something like that? I'm trying to check if it's a frontend error but highly doubt it, and we never call close connection in the backend during this whole flow.
Also, for concurent requests - does this mean 100 concurrent streaming socket connections as well?
Full event attached.