Giter Club home page Giter Club logo

Comments (2)

lukeed avatar lukeed commented on July 20, 2024

Hey,

So if you search through CloseEvent you'll start to get a little more info.

Both 1000 and 1005 are normal closures. 1005 is technically a lack of status code given, but it's still a normal shutdown signal from the server. (See #3)

Also, there's no 1003 in Sockette. The 1e3 evaluates to 1000.

The 1001 is "Going Away" which is sent by the client. This can be when the tab is closed (which won't matter anyway) or when the current DOM isn't being wiped. This was a late addition to Sockette, proved necessary by most SPA/React integrations and within React Native apps.

Really, the client should always clean up properly, but isn't always the case. Either way, it's the client telling the server that it's leaving.

Hope that helps!

from sockette.

samholst avatar samholst commented on July 20, 2024

Thank you!

from sockette.

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.