01.11.2021, 07:39
There's a jQuery event triggered on connect/disconnect:
Code:
$(localbus).on('connect', ...);
$(localbus).on('disconnect', ...);