split led code from rpc server
use socket server in web controller and add ledstatus