Function saito_rust::networking::handlers::ws_upgrade_handler [−][src]
pub async fn ws_upgrade_handler(
ws: Ws,
peer_db_lock: Arc<RwLock<PeersDB>>,
wallet_lock: Arc<RwLock<Wallet>>,
mempool_lock: Arc<RwLock<Mempool>>,
blockchain_lock: Arc<RwLock<Blockchain>>,
broadcast_channel_sender: Sender<SaitoMessage>
) -> Result<impl Reply, Rejection>
Expand description
websocket upgrade handler. accepts an http connection and upgrades it to WebSocket. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Upgrade Thanks, Ryan Dahl!!