pub struct RealtimeConfig {
pub realtime_url: String,
pub realtime_token: String,
pub channel_name: String,
pub user_id: String,
pub session_token: String,
pub supabase_anon_key: String,
pub heartbeat_interval_secs: u64,
pub sessions_dir: PathBuf,
pub version: String,
}Expand description
Supabase Realtime connection configuration
Fields§
§realtime_url: StringWebSocket URL (wss://…)
realtime_token: StringSupabase JWT for authentication
channel_name: StringChannel name to subscribe to (cli:{userId})
user_id: StringUser ID (for message routing)
session_token: StringSession token (for backend tracking)
supabase_anon_key: StringSupabase anon key (used as apikey param in WebSocket URL for Kong auth)
heartbeat_interval_secs: u64Heartbeat interval in seconds (for sending agent status to frontend)
sessions_dir: PathBufSessions directory for agent discovery (injected, replaces PlatformPaths)
version: StringCLI version string (injected, replaces env!(“CARGO_PKG_VERSION”))
Trait Implementations§
Source§impl Clone for RealtimeConfig
impl Clone for RealtimeConfig
Source§fn clone(&self) -> RealtimeConfig
fn clone(&self) -> RealtimeConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RealtimeConfig
impl RefUnwindSafe for RealtimeConfig
impl Send for RealtimeConfig
impl Sync for RealtimeConfig
impl Unpin for RealtimeConfig
impl UnsafeUnpin for RealtimeConfig
impl UnwindSafe for RealtimeConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more