rivet-envoy-client 2.3.1

Envoy client transport for Rivet actor hosts
Documentation
pub mod actor;
pub mod async_counter;
pub mod commands;
pub mod config;
pub mod connection;
pub mod context;
pub mod envoy;
pub mod events;
pub mod handle;
pub mod kv;
pub mod latency_channel;
pub mod metrics;
pub mod sqlite;
pub mod stringify;
pub(crate) mod time {
	#[cfg(not(target_arch = "wasm32"))]
	pub use std::time::Instant;
	#[cfg(target_arch = "wasm32")]
	pub use web_time::Instant;

	pub fn now_millis() -> i64 {
		#[cfg(not(target_arch = "wasm32"))]
		{
			std::time::SystemTime::now()
				.duration_since(std::time::UNIX_EPOCH)
				.expect("system clock should be after UNIX epoch")
				.as_millis() as i64
		}

		#[cfg(target_arch = "wasm32")]
		{
			js_sys::Date::now() as i64
		}
	}
}
pub mod tunnel;
pub mod utils;

pub use rivet_envoy_protocol as protocol;