Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit fa86844

Browse files
rahulhaquempociot
authored andcommitted
Debug dashboard connection exceeded error added (#194)
1 parent 74c3e06 commit fa86844

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

resources/views/dashboard.blade.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,15 @@
142142
this.logs = [];
143143
});
144144
145+
this.pusher.connection.bind('error', event => {
146+
if (event.error.data.code === 4100) {
147+
$('div#status').text("Maximum connection limit exceeded!");
148+
this.connected = false;
149+
this.logs = [];
150+
throw new Error("Over capacity");
151+
}
152+
});
153+
145154
this.subscribeToAllChannels();
146155
147156
this.subscribeToStatistics();

0 commit comments

Comments
 (0)