doing it that way would expose ur backend. if u doing something like this anyways.
const echo = new Echo({ broadcaster: 'pusher', key: 'your-pusher-key', cluster: 'your-cluster', encrypted: true });