Skip to main content

connect_gateway

Function connect_gateway 

Source
pub async fn connect_gateway(
    addr: &str,
    client_id: &str,
) -> Result<(Arc<FutuClient>, UnboundedReceiver<PushMessage>)>
Expand description

连接网关

返回 (client, push_rx);调用方负责在需要订阅推送时消费 push_rx。