This repository was archived by the owner on Feb 7, 2024. It is now read-only.
This repository was archived by the owner on Feb 7, 2024. It is now read-only.
Two laravel echo function with ten peak connection and thirteen websockets #228
Closed
Description
I called laravel echo twice in my page, one for App.user.{id}
and second is a private channel for broadcast events to all logged in users.
This is my Code in master.blade.php
inside layout folder:
Echo.private('App.User.' + "{{ Auth::id() }}")
.notification((notification) => {
window.notif(notification.message, {
heading: String(notification.title),
color: String(notification.color)
});
//Call UpdateNotification function
updateNotification();
});
Echo.private('players')
.listen('NewsAdded', (e) => {
console.log(e);
window.notif(e.message, {
heading: String(e.title),
color: String(e.color)
});
});
Thanks to Laravel websockets, I have a dashboard to see my websockets statistics, and there is 10 peak connection
and 13 websockets
for a single user!!!
Do you have any Idea?
Thanks in Advance