My expo app that uses supabase for authentication. I wanted to give broadcast feature a try but unable to send self-message. terminal logs: ``` LOG STATUS CHANNEL_ERROR LOG STATUS SUBSCRIBED LOG response ok
```
import { View, Text } from "react-native";
import { supabase } from "@utils/supabase";
export default function Home() {
useEffect(() => {
const myChannel = supabase.channel('room-2', {
config: { broadcast: { self: true } }
})
myChannel.on(
'broadcast',
{ event: 'test-my-messages' },
(payload) => console.log(payload)
)
myChannel.subscribe((status) => {
console.log("STATUS", status)
if (status !== 'SUBSCRIBED') { return }
myChannel.send({
type: 'broadcast',
event: 'test-my-messages',
payload: { message: 'talking to myself' }
}).then(response => console.log('response', response))
})
}, [])
return (
<View>
<Text>Home</Text>
</View
)
}
```
```
//utils/supabase.js
import { createClient } from "@supabase/supabase-js";
import * as SecureStore from "expo-secure-store";
import 'react-native-url-polyfill/auto';
import { getSupabaseBaseURL } from "./network";
const ExpoSecureStoreAdapter = {
getItem: (key: string) => SecureStore.getItemAsync(key),
setItem: (key: string, value: string) => SecureStore.setItemAsync(key, value),
removeItem: (key: string) => SecureStore.deleteItemAsync(key),
};
export const supabase = createClient(getSupabaseBaseURL(), process.env.EXPO_PUBLIC_SUPABASE_ANON_KEY, {
auth: {
storage: ExpoSecureStoreAdapter,
autoRefreshToken: true,
persistSession: true,
detectSessionInUrl: true,
flowType: "pkce"
}
});
```
`Node v24.2.0`
`"@supabase/supabase-js": "^2.93.3"`
`"expo": "~54.0.32",`
`"react-native": "0.81.5",`
The user is experiencing an issue with their Expo app using Supabase for authentication. They are trying to use the broadcast feature to send a self-message but encounter a 'CHANNEL_ERROR' status in the terminal logs. The code snippet provided shows the setup for broadcasting messages using Supabase's Realtime API.