How to use CLI to test channels without the help of the client sending ping every X seconds to keep the connection alive?

As the title suggest, I wanna use CLI to test channels, but it disconnects after maybe 30 seconds. I believe it’s because it’s not sending any message within 30 seconds so the server deems it disconnected? By default, clients should send a “ping” message every few seconds. But since I am using CLI, how can I bypass this requirement just for testing?

Hello, maybe it can help you, creating one process to send the ping every x seconds?