The shell script for OpenWrt kicks out the wifi client whose signal is too weak signal by comparing it to a threshold. It can be periodically triggered by crontab or by a loop with a sleep command, ...
The node-cron module is tiny task scheduler in pure JavaScript for node.js based on GNU crontab. This module allows you to schedule task in node.js using full crontab syntax.