Code Monkey home page Code Monkey logo

Comments (2)

rustonaut avatar rustonaut commented on September 27, 2024

We could read "normal close code" as "close as normally done by the close message", in which case it's not a inconsistency but just a bit unclear text.

from saltyrtc-meta.

lgrahl avatar lgrahl commented on September 27, 2024

I agree that this is quite confusing. But it's especially confusing because we can fully control the close codes in the 'close' message but cannot fully control them when closing the WebSocket connection because the Web API of WebSockets does not allow to use any 1xxx code other than 1000.

What the protocol should say is that either 1000 or 1001 is fine to use in any of the above scenarios.

Where I'm not sure if it means you should set no close code (which is possible) or if it means you can set any arbitrary close code.

Arbitrary is what is meant here although 1000/1001 make the most sense in almost all scenarios.

from saltyrtc-meta.

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.