GithubHelp home page GithubHelp logo

Comments (3)

DouglasGray avatar DouglasGray commented on July 16, 2024

Of course I understand that the master branch and what's officially out there can be out of sync, but it seems that the change to signal the end of the stream is a fairly important one? Unless I'm missing something in the source that I see on crates.io (which is very likely)

from tokio-tungstenite.

daniel-abramov avatar daniel-abramov commented on July 16, 2024

Hi, yes, the master branch is the current (active) state, the latest versions of tokio-tungstenite and tungstenite has not been published to crates.io yet.

At least for me I can confirm that when I add 'tokio-tungstenite = "*"' to my Cargo.toml it uses the code that I can see on crates.io. Is this the case for anyone else?

Yes. The version from master branch has not yet been published. The changes you're referring to have been made to implement some improvements which were suggested to us, namely we changed the semantics for the Stream implementation so that it corresponds to the "expected" behavior of Tokio, i.e. a normal close will not result in an error on Stream anymore, but return a None. And the Message enum has been extended by an additional Close message, so you still have the possibility to analyze the close code in a newest version (master branch) and your Stream will return None when the connection is closed in a normal way (and not an Err like it did before).

Some people already mentioned in multiple comments that we have to publish tungstenite-rs and tokio-tungstenite to crates.io, I pinged @agalakhov to do that. Perhaps he has forgotten to do that.

from tokio-tungstenite.

DouglasGray avatar DouglasGray commented on July 16, 2024

Ok gotcha, thank you for explaining!

from tokio-tungstenite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.