Skip to main content

connect

Function connect 

Source
pub async fn connect(
    url: &str,
    headers: &[(&str, &str)],
) -> Result<(WsSender, WsReceiver), WsError>
Expand description

Connect to a WebSocket endpoint with optional headers.

headers is a slice of (name, value) pairs to include in the upgrade request.