Enable websockit activation in the Laravel project
Budget: $10 – $30 USD
Here's a simplified and organized explanation in English:
Hello,
I am a beginner in learning about WebSockets and I want to integrate it into a Laravel project. I followed all the steps from YouTube tutorials. I've set up everything and the WebSocket is working. When I send an event, it gets broadcasted on the dashboard and it also prints in the terminal. However, here is the problem:
Based on the following code, when an event occurs, it should print its data in the console. But it's not doing that:
Echo.channel(`messenger`)
.listen('.testEvent', (e) => {
console.log('-----------------------------------');
console.log(e);
console.log(e.message);
console.log('############################################');
});
I need someone who is knowledgeable to have a meeting with me to solve this issue and explain a few more simple things to me.
Hope that helps! If you need any further clarification, please let me know.
Hello,
I am a beginner in learning about WebSockets and I want to integrate it into a Laravel project. I followed all the steps from YouTube tutorials. I've set up everything and the WebSocket is working. When I send an event, it gets broadcasted on the dashboard and it also prints in the terminal. However, here is the problem:
Based on the following code, when an event occurs, it should print its data in the console. But it's not doing that:
Echo.channel(`messenger`)
.listen('.testEvent', (e) => {
console.log('-----------------------------------');
console.log(e);
console.log(e.message);
console.log('############################################');
});
I need someone who is knowledgeable to have a meeting with me to solve this issue and explain a few more simple things to me.
Hope that helps! If you need any further clarification, please let me know.