hat nothing strange happens when send()ing in closed state
    var sent = ws.send('test');
    assert_equals(sent, undefined);
    ws.onclose = t.unreached_func();
    t.step_timeout(() => t.done(), 50);
  })
  ws.onerror = t.unreached_func();
});
</script>
