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

Add support for wss #360

Merged
merged 1 commit into from Jun 26, 2020
Merged

Add support for wss #360

merged 1 commit into from Jun 26, 2020

Conversation

en
Copy link
Contributor

@en en commented Jun 26, 2020

Make rust-web3 work with an infura-like endpoint.
For example, wss://mainnet.infura.io/ws/v3/{PROJECT_ID}

Make rust-web3 work with an infura-like endpoint.
Copy link
Owner

@tomusdrw tomusdrw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks awesome, thanks!

/// Stream, either plain TCP or TLS.
enum MaybeTlsStream<S> {
/// Unencrypted socket stream.
Plain(S),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could use pin_project to avoid the Unpin bound, but it's already a separate issue to work on. See #361

@tomusdrw tomusdrw merged commit c06ce7d into tomusdrw:master Jun 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants