jeudi 17 septembre 2020

Laravel-echo-server, net::ERR_CONNECTION_TIMED_OUT in laravel echo redis server

I'm using laravel-echo with redis for broadcast notification. It works perfectly on my local system. But on my server, I'm getting net::ERR_CONNECTION_TIMED_OUT error. I have no any knowledge about socket and redis. I followed instruction of laravel document and laravel echo server. But still same error.

http://demoip.com:6001/socket.io/socket.io.js net::ERR_CONNECTION_TIMED_OUT

js

import Echo from 'laravel-echo';
 
window.Echo = new Echo({
    broadcaster: 'socket.io',
    host: window.location.hostname + ":" + window.laravel_echo_port
});

If anyone knows the solution, it will be appreciated.

Thanks to everyone in advance.



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3kqS2xx
via IFTTT

Aucun commentaire:

Enregistrer un commentaire