afterEach(async () => {
    global.WebSocket = globalWs;

    if (mock) {
      await mock.done();