Skip to content

tokio_util::either::Either for handshake Io #68

Discussion options

You must be logged in to vote

Found the solution:

...
        .bind("mqtt", &*MQTT_SERVER_INSECURE_ADDRESS, || {
            pipeline_factory(move |io| async move { Ok(io) })
                .map(Either::Right)
                .and_then(
                    MqttServer::new().v3(v3::MqttServer::new(handshake)
                        .control(fn_factory_with_config(
                            |session: v3::Session<ClientSession>| async move {
                                Ok::<_, ServerError>(fn_service(move |req| {
                                    control_v3(session.clone(), req)
                                }))
                            },
                        ))
                        .publish(fn_facto…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by Antiarchitect
Comment options

You must be logged in to vote
6 replies
@fafhrd91
Comment options

@fafhrd91
Comment options

@Antiarchitect
Comment options

@fafhrd91
Comment options

@Antiarchitect
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants