I have a server up and running in my digitaldomain droplet.
in my server code, I have a function called userCount(); which simply returns the number fo connected users.
I do not want to console.log the number of users on my server, each time someone is connected. This just creates a mess. Instead, I would like to be able to run this command whenever I need to see the "current user count".
How can I make my server in a way that, I will also be able to input commands to it (from the console) whenever it's needed?
What is the best and/or most optimal way of doing this?