Racing to Disconnect

Our Socket.IO abstraction connects cleanly. Now we need to make sure it disconnects as well. This is trickier than it sounds due to a race condition between our client and server: sometimes the client says it’s disconnected, but the server hasn’t finished disconnecting yet. How can we test this without using a slow and fragile timeout?

  1. E386Hang Ten

    Wed, 17 Feb ’16
  2. E387A Question of Test Quality

    Mon, 22 Feb ’16
  3. E388The AJAX Back-Channel

    Wed, 24 Feb ’16
  4. E389Connection Query

    Mon, 29 Feb ’16
  5. E390Show Some ID

    Wed, 2 Mar ’16
  6. E391Racing to Disconnect

    Mon, 7 Mar ’16
  7. E392This Kills the Browser

    Wed, 9 Mar ’16
  8. E393Pointing the Way

    Mon, 14 Mar ’16
  9. E394An Eventful Race

    Wed, 16 Mar ’16