From what I found out and would even had guess a websocket server should still response to pings and send a pong back.
But when I used a client with a relative small default timeout of 30sec and spacetimedb did not response in that time frame to ping with a pong because it was still responding really slow or better said a bug in tungstenite-rs on client side to be really slow on big responses. (Which is now fixed in version 0.27.0 if you guys want to update your version).
I am not sure if that is fixed in the meantime (last 2 months). But it would be nice if you guys could fix it so you still response to control frame when you are responding to a client. As this could also maybe be a problem in real world usage if people have slow connections, instead of my problem where I had a client which wanted to download on subscribe ~1GB of data and on top of that had a bug in the websocket client.