diff --git a/resources/views/dashboard.blade.php b/resources/views/dashboard.blade.php index d929253..0d97e7e 100644 --- a/resources/views/dashboard.blade.php +++ b/resources/views/dashboard.blade.php @@ -142,6 +142,15 @@ this.logs = []; }); + this.pusher.connection.bind('error', event => { + if (event.error.data.code === 4100) { + $('div#status').text("Maximum connection limit exceeded!"); + this.connected = false; + this.logs = []; + throw new Error("Over capacity"); + } + }); + this.subscribeToAllChannels(); this.subscribeToStatistics();