You can use any functional RCON library. If you're using NodeJS there's a few if you google "NodeJS RCON"