Closed abdosaeedelhassan closed 3 years ago
Hi, my client app is
`
<script> var socket = io('tyqn.test:3001'); socket.on('app-events:1', function (data) { console.log(data); }); socket.on('connect', () => { console.log('socket.io successfully connected') }); </script>
` i received that successfully connected, but i can't receive data from fired event, inside laravel it worked as follow
window.Echo.channel('Tyqnapp-events') .listen('.app-events:' + user_id, (data) => { });
i need help to receive data in client app
try version socket.io-client: 2.4
Thank you
Hi, my client app is
`
` i received that successfully connected, but i can't receive data from fired event, inside laravel it worked as follow
window.Echo.channel('Tyqnapp-events') .listen('.app-events:' + user_id, (data) => { });
i need help to receive data in client app