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.
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.