25 lines
776 B
JavaScript
25 lines
776 B
JavaScript
// window.Echo.channel('demo')
|
|
// .listen('.DemoPing', (e) => {
|
|
// console.log('[Reverb] DemoPing:', e);
|
|
// window.toastraGlass?.show({
|
|
// id: 'demo', state: 'done', badge: 'Broadcast',
|
|
// domain: 'DemoPing', message: e.msg, duration: 3000
|
|
// });
|
|
// });
|
|
|
|
export function initEvents(echo) {
|
|
echo.channel('system')
|
|
.listen('.cert.ping', (e) => {
|
|
console.log('[WS] cert.ping', e);
|
|
window.toastraGlass?.show({
|
|
id: 'cert-ping',
|
|
state: 'running',
|
|
badge: 'Zertifikat',
|
|
domain: 'Signal',
|
|
message: e.message,
|
|
position: 'bottom-right',
|
|
duration: 3000,
|
|
});
|
|
});
|
|
}
|