Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate a Client method for Dropshot websocket channels #183

Merged
merged 1 commit into from Sep 28, 2022

Commits on Sep 22, 2022

  1. Generate a Client method for Dropshot websocket channels

    Generated methods return `ResponseValue<reqwest::Upgrade`, which may be
    passed to a websocket protocol implementation such as
    `tokio_tungstenite::WebSocketStream::from_raw_stream(rv.into_inner(), ...)`
    for the purpose of implementing against the raw websocket connection, but
    may later be extended as a generic to allow higher-level channel message
    definitions.
    
    Per the changelog, consumers will need to depend on reqwest 0.11.12 or
    newer for HTTP Upgrade support, as well as base64 and rand if any
    endpoints are websocket channels:
    ```
    [dependencies]
    reqwest = { version = "0.11.12" features = ["json", "stream"] }
    base64 = "0.13"
    rand = "0.8"
    ```
    lif committed Sep 22, 2022
    Configuration menu
    Copy the full SHA
    7d0df33 View commit details
    Browse the repository at this point in the history