async def METHOD_NAME():
    comm_closed = asyncio.Event()
    async def handle_comm(comm):
        try:
            while True:
                msg = await comm.read()
                await comm.write(msg)
        finally:
            comm_closed.set()
    server_ctx = get_server_ssl_context()
    client_ctx = get_client_ssl_context()
    async with listen("wss://", handle_comm, ssl_context=server_ctx) as listener:
        comm = await connect(listener.contact_address, ssl_context=client_ctx)
        assert comm.peer_address.startswith("wss://")
        check_tls_extra(comm.extra_info)
        await comm.write(b"Hello!")
        result = await comm.read()
        assert result == b"Hello!"
        await comm.close()
        await comm_closed.wait()