papi-dts
    Preparing search index...

    Variable INTENTIONAL_CLOSE_CODEConst

    INTENTIONAL_CLOSE_CODE: 4000

    Close code used when we close a PAPI socket on purpose (shutdown, teardown). The WebSocket spec reserves 3000-4999 for application use, so carrying intent in the code itself lets a close handler tell a deliberate shutdown from a connection that died, with no extra state to keep in sync.