You should not have to do anything special, SSH does not terminate a connection because of inactivity. So there is no inactivity period defined within SSH.
However one of the devices on the network route between you and your server might lose the route and for that activity from one side usually is enough, but not always (there are "arrival confirmation packages", acknowledgements, going back to the server from the client when using TCP).
Traffic from both sides is no guarantee for continued connectivity, if you have a DSL modem and your provider decides that you get a new IP address every day, the connection will be broken.
You can have your client sent some packets on a regular basis by inserting
/etc/ssh/ssh_config or your
~/.ssh/config to have some client to server traffic every 5 seconds in addition to the traffic coming from the server every 10 seconds.
The simpler "solution" to DSL modem resetting a connection is running your server side software in
screen: if the connection is broken, you just SSH into the server again, issue
tmux attach or
screen -r and you can continue to view the uninterrupted server program.
screen is especially useful if you are not so much worried about losing the connection, but of the consequence that the server program stops if you do. For that you can also redirect the output of the original program to file and use
tail -f, but that doesn't allow you to easily interact with the server program (if that would be necessary).
screen (in their basic forms) are easy to use, but there are some side-effects like not being able to scroll back using the sliders on your graphical terminal (you have to use keyboard shortcuts to have the server scroll back in its buffer for that).
A more flexible solution around devices breaking your connection is to use
mosh. This uses SSH to exchange some secret info and then allows for reattachment even if one or both of the IP addresses changes. This is however more difficult to set up and get to work.
In your case I would start with using
tmux and manually reattach when the connection indeed deactivates.