Skip to content

Transport trait implementation #192

Closed

Description

@ritesh

I'm trying to get the pubnub client to work on an esp32 board (this is a std environment but I've not figured out async yet so trying blocking APIs), where using reqwest is too much of a pain.

I think reqwest depends on openssl which I'm not sure how to get to work for my target platform.

The docs mention that you can provide your own transport implementation, but I get a 404 when I try to find it. I would like to use this trait and use the esp32 HTTP client to do the work of connecting to the pubnub API endpoints.

Is this trait gone? Wondering if there's a way to surface TLS library as a feature flag that lets you choose between say rust_tls/openssl etc.

Activity

  1. parfeon commented on Mar 23, 2025

    @parfeon
    Contributor

    @ritesh thank you for reaching out.

    Quick response for docs: https://docs.rs/pubnub/0.6.0/pubnub/core/trait.Transport.html
    Can you please share where broken link is in the code or docs?

  2. ritesh commented on Mar 24, 2025

    @ritesh
    Author

    Thanks! I'm not sure how I missed that. I was browsing the docs through crates and this is the broken link that I ran into - I can't seem to find it now.

    https://docs.rs/pubnub/latest/core/trait.Transport.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: doneThis issue is considered resolved.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions