pub struct ConnectionUrl {
pub socket_origin: String,
pub client_id: String,
pub client_group_id: String,
pub user_id: Option<String>,
pub base_cookie: Option<String>,
pub timestamp: f64,
pub last_mutation_id: f64,
pub wsid: String,
pub profile_id: String,
pub debug_perf: bool,
pub additional_params: Vec<(String, String)>,
}Expand description
The sync socket’s URL: /sync/v{PROTOCOL_VERSION}/connect on the
socket origin, with the query parameters in the order JS sets them
(createConnectionURL in packages/zero-client/src/client/zero.ts).
Fields§
§socket_origin: Stringws:// or wss://, host, and port, and optionally a path.
client_id: String§client_group_id: String§user_id: Option<String>The cookie of the client’s last server snapshot, None for none.
timestamp: f64The ts parameter, performance.now() in JS.
last_mutation_id: f64§wsid: String§profile_id: String§debug_perf: bool§additional_params: Vec<(String, String)>More parameters; one the client sets itself is skipped, as JS does.
Trait Implementations§
Source§impl Clone for ConnectionUrl
impl Clone for ConnectionUrl
Source§impl Debug for ConnectionUrl
impl Debug for ConnectionUrl
Source§impl Default for ConnectionUrl
impl Default for ConnectionUrl
Source§impl Display for ConnectionUrl
impl Display for ConnectionUrl
Source§impl PartialEq for ConnectionUrl
impl PartialEq for ConnectionUrl
impl StructuralPartialEq for ConnectionUrl
Auto Trait Implementations§
impl Forget for ConnectionUrl
impl Freeze for ConnectionUrl
impl Move for ConnectionUrl
impl RefUnwindSafe for ConnectionUrl
impl Send for ConnectionUrl
impl Sync for ConnectionUrl
impl Unpin for ConnectionUrl
impl UnsafeUnpin for ConnectionUrl
impl UnwindSafe for ConnectionUrl
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