You might need to simulate crappy wifi, or spotty cell or otherwise "there but just barely or not really" network connectivity, so as to make sure your app or whatevz handles that gracefully.
Presuming your server is on linux, this is the long and short of it:
# add a rule limiting bandwidth and adding latency
# to the network interface serving your thing
# mine is 'enp2s0', but maybe yours is 'eth0'
# or what have you
root@server> tc qdisc add dev enp2s0 root tbf rate .5mbit burst .5mbit latency 100ms
# turn the rule back off and return to normal
root@server> tc qdisc del dev enp2s0 root tbf rate .5mbit burst .5mbit latency 100ms
you're using the tc (traffic control) shell command which you probably already have as part of your
distro install, but you might have to go looking. If you don't have it, the iproute
package is
a good place to start.