Level 1
you need to set the auth headers. here is my echo setup for connecting to reverb:
configureEcho({
broadcaster: "reverb",
key: config.public.reverbAppKey,
wsHost: config.public.reverbHost,
wsPort: config.public.reverbPort,
wssPort: config.public.reverbPort,
//force TLS if browser is https
forceTLS: (window.location.protocol === 'https:'),
// forceTLS: (import.meta.env.VITE_REVERB_SCHEME ?? 'https') === 'https',
enabledTransports: ['ws', 'wss'],
authEndpoint: config.public.apiBase + '/broadcasting/auth',
auth: {
headers: {
Authorization: "Bearer " + token.value
},
}
});
2 likes