v0.2.8-pre.008
This commit is contained in:
@@ -1,11 +1,20 @@
|
||||
// file: crates/ksp-onchain-transport-lib/src/ws_protocol_session.rs
|
||||
// version: 4
|
||||
// version: 5
|
||||
|
||||
/// Typed facade for one standard Solana WebSocket physical session.
|
||||
///
|
||||
/// The facade delegates to the same [`crate::WsSession`] actor used by the compatibility API. It owns no socket, registry, reconnect loop or queue of its
|
||||
/// own and therefore does not duplicate the physical WebSocket runtime. Subscription wrappers are implemented beside their wire owners in the
|
||||
/// `ws_accounts`, `ws_blocks`, `ws_cluster` and `ws_transactions` modules.
|
||||
///
|
||||
/// ```compile_fail
|
||||
/// async fn unsupported_helius_transaction(
|
||||
/// session: &ksp_onchain_transport_lib::SolanaStandardWsSession,
|
||||
/// request: &ksp_onchain_transport_lib::HeliusTransactionSubscribeRequest,
|
||||
/// ) {
|
||||
/// let _ = session.transaction_subscribe(request).await;
|
||||
/// }
|
||||
/// ```
|
||||
#[derive(Clone)]
|
||||
pub struct SolanaStandardWsSession {
|
||||
inner: crate::WsSession,
|
||||
|
||||
Reference in New Issue
Block a user