I use from socket.io and laravel-echo-server for sending my events to all clients by a public channel but I want just my clients (like my mobile apps and web apps) to be able to connect to laravel-echo-server, not others, like pusher system with an app-key and a secret-word, how can I do this?
update: finally, I have to use from a private channel and in mobile client everything is ok but at the web app (admin panel) laravel-echo-server can't connect to channel and authorize by csrf-token. this is my code : in the header:
<meta name="csrf-token" content="{{ csrf_token() }}">
in javascript:
Echo.private('channel')
.listen('event', (e) => {
console.log(e);
});